diff options
| author | Petr Mrázek | 2011-08-07 01:35:28 +0000 |
|---|---|---|
| committer | Petr Mrázek | 2011-08-07 01:35:28 +0000 |
| commit | 4064cf25797462fc6ac61f578b7e4b6bd31bf6b6 (patch) | |
| tree | 1a1744e66471edd1948b02bf4627e87693f1685a /BlockCondition.cpp | |
| parent | d841ba0fee6e1f98e414c52dd07b44b981bc05fe (diff) | |
| download | stonesense-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 'BlockCondition.cpp')
| -rw-r--r-- | BlockCondition.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BlockCondition.cpp b/BlockCondition.cpp index ea498c3..c96233b 100644 --- a/BlockCondition.cpp +++ b/BlockCondition.cpp @@ -32,8 +32,8 @@ int getDirectionFromString(const char* strDir) int getBuildingFromString(const char* strType)
{
- for (uint32_t i=0; i<contentLoader.classIdStrings.size(); i++){
- if (contentLoader.classIdStrings[i].compare(strType) == 0)
+ for (uint32_t i=0; i<contentLoader->classIdStrings.size(); i++){
+ if (contentLoader->classIdStrings[i].compare(strType) == 0)
{
return i;
}
|
