Fix #7111: Path items appear twice in build menu

Issue caused by #7106 - fixed it for banners, but forgot to fix it for path bits as well.
This commit is contained in:
Gymnasiast 2018-02-01 11:39:34 +01:00
parent 58d325968b
commit 1b2c1a4d83
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ void FootpathItemObject::ReadLegacy(IReadObjectContext * context, IStream * stre
const rct_object_entry * objectEntry = object_list_find_by_name(identifier.c_str());
static const rct_object_entry scgPathX = Object::GetScgPathXHeader();
if (objectEntry != nullptr && object_entry_get_source_game(objectEntry) != OBJECT_SOURCE_RCT2)
if (objectEntry != nullptr &&
(object_entry_get_source_game(objectEntry) == OBJECT_SOURCE_WACKY_WORLDS ||
object_entry_get_source_game(objectEntry) == OBJECT_SOURCE_TIME_TWISTER ||
object_entry_get_source_game(objectEntry) == OBJECT_SOURCE_CUSTOM))
{
SetPrimarySceneryGroup(&scgPathX);
}