diff --git a/lib/rmg/CRmgTemplate.cpp b/lib/rmg/CRmgTemplate.cpp index cdeb57a2c..e4a6b1b78 100644 --- a/lib/rmg/CRmgTemplate.cpp +++ b/lib/rmg/CRmgTemplate.cpp @@ -133,9 +133,8 @@ void ZoneOptions::CTownHints::serializeJson(JsonSerializeFormat & handler) } else { - int temp; - handler.serializeInt("notLikeZone", temp, NO_ZONE); - notLikeZone.push_back(temp); + notLikeZone.resize(1); + handler.serializeInt("notLikeZone", notLikeZone[0], NO_ZONE); } handler.serializeInt("relatedToZoneTerrain", relatedToZoneTerrain, NO_ZONE); }