1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Fix unused variable on serialization

This commit is contained in:
Ivan Savenko
2025-03-26 19:55:56 +00:00
parent 1c96489721
commit c6a541752e

View File

@@ -133,9 +133,8 @@ void ZoneOptions::CTownHints::serializeJson(JsonSerializeFormat & handler)
} }
else else
{ {
int temp; notLikeZone.resize(1);
handler.serializeInt("notLikeZone", temp, NO_ZONE); handler.serializeInt("notLikeZone", notLikeZone[0], NO_ZONE);
notLikeZone.push_back(temp);
} }
handler.serializeInt("relatedToZoneTerrain", relatedToZoneTerrain, NO_ZONE); handler.serializeInt("relatedToZoneTerrain", relatedToZoneTerrain, NO_ZONE);
} }