summaryrefslogtreecommitdiff
path: root/CreatureConfiguration.cpp
diff options
context:
space:
mode:
authorJapa2010-04-24 12:23:16 +0000
committerJapa2010-04-24 12:23:16 +0000
commit701514f5c7e0df61038bb2d6b4991956c56c8fc4 (patch)
tree8bd9eefcdc90289f25e1752d8f5f797a4d76dfe7 /CreatureConfiguration.cpp
parent3762a5ddf8a4f038d762cd2689afb421d50430c5 (diff)
downloadstonesense-701514f5c7e0df61038bb2d6b4991956c56c8fc4.tar.gz
stonesense-701514f5c7e0df61038bb2d6b4991956c56c8fc4.tar.bz2
stonesense-701514f5c7e0df61038bb2d6b4991956c56c8fc4.tar.xz
fixed some crashes that occur when re-loading configs.
should be ok now.
Diffstat (limited to 'CreatureConfiguration.cpp')
-rw-r--r--CreatureConfiguration.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CreatureConfiguration.cpp b/CreatureConfiguration.cpp
index 070a86a..738d357 100644
--- a/CreatureConfiguration.cpp
+++ b/CreatureConfiguration.cpp
@@ -43,7 +43,7 @@ void DumpProfessionsToDisk(){
FILE* fp = fopen("dump.txt", "w");
if(!fp) return;
string proffStr;
- for(int j=0; (proffStr = dfMemoryInfo->getProfession(j)) != "" ; j++){
+ for(int j=0; (proffStr = contentLoader.professionStrings[j]) != "" ; j++){
fprintf(fp, "%i:%s\n",j, proffStr.c_str());
}
fclose(fp);
@@ -59,7 +59,7 @@ int translateProfession(const char* currentProf)
{
for(j=0; true; j++)
{
- proffStr = dfMemoryInfo->getProfession(j);
+ proffStr = contentLoader.professionStrings[j];
if( proffStr.compare( currentProf ) == 0)
{
//assign ID