summaryrefslogtreecommitdiff
path: root/ContentBuildingReader.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-08-07 01:35:28 +0000
committerPetr Mrázek2011-08-07 01:35:28 +0000
commit4064cf25797462fc6ac61f578b7e4b6bd31bf6b6 (patch)
tree1a1744e66471edd1948b02bf4627e87693f1685a /ContentBuildingReader.cpp
parentd841ba0fee6e1f98e414c52dd07b44b981bc05fe (diff)
downloadstonesense-4064cf25797462fc6ac61f578b7e4b6bd31bf6b6.tar.gz
stonesense-4064cf25797462fc6ac61f578b7e4b6bd31bf6b6.tar.bz2
stonesense-4064cf25797462fc6ac61f578b7e4b6bd31bf6b6.tar.xz
stonesense now doesn't crash while starting for the second time
Diffstat (limited to 'ContentBuildingReader.cpp')
-rw-r--r--ContentBuildingReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ContentBuildingReader.cpp b/ContentBuildingReader.cpp
index bec0438..4b3b8b3 100644
--- a/ContentBuildingReader.cpp
+++ b/ContentBuildingReader.cpp
@@ -283,7 +283,7 @@ bool addSingleBuildingConfig( TiXmlElement* elemRoot, vector<BuildingConfigurat
return false;
}
- int gameID = TranslateBuildingName(strGameID, contentLoader.classIdStrings );
+ int gameID = TranslateBuildingName(strGameID, contentLoader->classIdStrings );
if (gameID == INVALID_INDEX) {
return false;
@@ -313,7 +313,7 @@ bool addSingleCustomBuildingConfig( TiXmlElement* elemRoot, vector<BuildingConf
return false;
}
- int gameID = TranslateBuildingName(strGameID, contentLoader.custom_workshop_types );
+ int gameID = TranslateBuildingName(strGameID, contentLoader->custom_workshop_types );
if (gameID == INVALID_INDEX) {
return false;