summaryrefslogtreecommitdiff
path: root/Creatures.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 /Creatures.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 'Creatures.cpp')
-rw-r--r--Creatures.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Creatures.cpp b/Creatures.cpp
index 4a22b9a..9091a04 100644
--- a/Creatures.cpp
+++ b/Creatures.cpp
@@ -302,7 +302,7 @@ void DrawCreatureText(int drawx, int drawy, t_creature* creature ){
{
if(!config.skipCreatureTypes)
draw_textf_border(font, al_map_rgb(255,255,255), drawx, drawy-(WALLHEIGHT+al_get_font_line_height(font)), 0,
- "[%s]", contentLoader.Mats->race.at(creature->race).id.c_str());
+ "[%s]", contentLoader->Mats->race.at(creature->race).id.c_str());
}
}
@@ -415,12 +415,12 @@ void ReadCreaturesToSegment( DFHack::Core& DF, WorldSegment* segment)
CreatureConfiguration *GetCreatureConfig( t_creature* c ){
//find list for creature type
vector<CreatureConfiguration>* creatureData;
- uint32_t num = (uint32_t)contentLoader.creatureConfigs.size();
+ uint32_t num = (uint32_t)contentLoader->creatureConfigs.size();
if (c->race >= num)
{
return NULL;
}
- creatureData = contentLoader.creatureConfigs[c->race];
+ creatureData = contentLoader->creatureConfigs[c->race];
if (creatureData == NULL)
{
return NULL;