From 3926a34ef4c4b35bc81dea6eaa95fa592ab27c21 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 13 Mar 2012 22:28:36 +0000 Subject: [PATCH] - missed another bad index --- source/glest_game/world/map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/world/map.cpp b/source/glest_game/world/map.cpp index 53f109370..c435b2d66 100644 --- a/source/glest_game/world/map.cpp +++ b/source/glest_game/world/map.cpp @@ -1966,7 +1966,7 @@ void Map::loadGame(const XmlNode *rootNode, World *world) { string value = tokensExploredValue[k]; SurfaceCell &surfaceCell = surfaceCells[i]; - surfaceCell.setExplored(j,strToInt(value)); + surfaceCell.setExplored(k,strToInt(value)); } } @@ -1981,7 +1981,7 @@ void Map::loadGame(const XmlNode *rootNode, World *world) { string value = tokensVisibleValue[k]; SurfaceCell &surfaceCell = surfaceCells[i]; - surfaceCell.setVisible(j,strToInt(value)); + surfaceCell.setVisible(k,strToInt(value)); } } }