1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +01:00

Load object version into a tuple

This commit is contained in:
spacek531
2023-01-07 14:25:39 -08:00
committed by GitHub
parent a0b4f1b2d2
commit c82c4ca3a3
5 changed files with 63 additions and 8 deletions

View File

@@ -521,7 +521,7 @@ namespace ObjectFactory
if (id == OpenRCT2::Audio::AudioObjectIdentifiers::Rct2cBase)
id = OpenRCT2::Audio::AudioObjectIdentifiers::Rct2Base;
auto version = Json::GetString(jRoot["version"]);
auto version = VersionTuple(Json::GetString(jRoot["version"]));
ObjectEntryDescriptor descriptor;
auto originalId = Json::GetString(jRoot["originalId"]);
if (originalId.length() == 8 + 1 + 8 + 1 + 8)