Browse Source

Merge pull request #5588 from IvanSavenko/ci_fix

Fix CI failure in develop branch
Ivan Savenko 6 months ago
parent
commit
4df4438f59
1 changed files with 2 additions and 3 deletions
  1. 2 3
      lib/rmg/CRmgTemplate.cpp

+ 2 - 3
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);
 }