Set a default scenery group priority value

All custom groups I checked seem to use ‘40’ as the priority, so I went with that.
This commit is contained in:
Michael Steenbeek 2022-12-05 07:36:10 +01:00 committed by GitHub
parent 8438d05011
commit b3af9b6eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ void SceneryGroupObject::ReadJson(IReadObjectContext* context, json_t& root)
if (properties.is_object())
{
_legacyType.priority = Json::GetNumber<uint8_t>(properties["priority"]);
_legacyType.priority = Json::GetNumber<uint8_t>(properties["priority"], 40);
_legacyType.entertainer_costumes = ReadJsonEntertainerCostumes(properties["entertainerCostumes"]);
_items = ReadJsonEntries(context, properties["entries"]);