mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
introduce toResourceType
This commit is contained in:
@@ -376,7 +376,7 @@ void CQuest::serializeJson(JsonSerializeFormat & handler, const std::string & fi
|
||||
|
||||
for(auto & idx : LIBRARY->resourceTypeHandler->getAllObjects())
|
||||
if(idx != GameResID::MITHRIL)
|
||||
handler.serializeInt(LIBRARY->resourceTypeHandler->getById(idx)->getJsonKey(), mission.resources[idx], 0);
|
||||
handler.serializeInt(idx.toResource()->getJsonKey(), mission.resources[idx], 0);
|
||||
}
|
||||
|
||||
if(missionType == "Hero")
|
||||
|
||||
Reference in New Issue
Block a user