mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Modernize resourceSet
This commit is contained in:
@ -513,9 +513,6 @@ void CQuest::serializeJson(JsonSerializeFormat & handler, const std::string & fi
|
||||
{
|
||||
auto r = handler.enterStruct("resources");
|
||||
|
||||
if(!handler.saving)
|
||||
m7resources.resize(GameConstants::RESOURCE_QUANTITY-1);
|
||||
|
||||
for(size_t idx = 0; idx < (GameConstants::RESOURCE_QUANTITY - 1); idx++)
|
||||
{
|
||||
handler.serializeInt(GameConstants::RESOURCE_NAMES[idx], m7resources[idx], 0);
|
||||
|
Reference in New Issue
Block a user