1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Partial fix of #9533. Door sounds not playing

Will now look for correct field. But many json objects do not have this
field set correctly.
This commit is contained in:
duncanspumpkin
2019-08-18 09:22:42 +01:00
parent 406ec7ff32
commit 1ee2063cef

View File

@@ -137,7 +137,7 @@ void WallObject::ReadJson(IReadObjectContext* context, const json_t* root)
}
// Door sound
auto jDoorSound = json_object_get(properties, "scrollingMode");
auto jDoorSound = json_object_get(properties, "doorSound");
if (jDoorSound != nullptr)
{
auto doorSound = json_integer_value(jDoorSound);