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
1 changed files with 1 additions and 1 deletions

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);