diff --git a/src/editor/editloop.cpp b/src/editor/editloop.cpp index 3c3c6239a..f80efdf38 100644 --- a/src/editor/editloop.cpp +++ b/src/editor/editloop.cpp @@ -2534,7 +2534,12 @@ void CEditor::Init() //Wyrmgus start // Map.Fields = new CMapField[Map.Info.MapWidth * Map.Info.MapHeight]; + Map.Fields.clear(); Map.Fields.push_back(new CMapField[Map.Info.MapWidth * Map.Info.MapHeight]); + Map.Info.MapWidths.clear(); + Map.Info.MapWidths.push_back(Map.Info.MapWidth); + Map.Info.MapHeights.clear(); + Map.Info.MapHeights.push_back(Map.Info.MapHeight); Map.TimeOfDaySeconds.push_back(DefaultTimeOfDaySeconds); Map.TimeOfDay.push_back(NoTimeOfDay); Map.Planes.push_back(NULL);