summaryrefslogtreecommitdiff
path: root/Block.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 /Block.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 'Block.cpp')
-rw-r--r--Block.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Block.cpp b/Block.cpp
index 693d5b3..409ddfa 100644
--- a/Block.cpp
+++ b/Block.cpp
@@ -268,8 +268,8 @@ void Block::Draw(){
//Building
bool skipBuilding =
- (building.info.type == contentLoader.civzoneNum && !config.show_stockpiles) ||
- (building.info.type == contentLoader.stockpileNum && !config.show_zones);
+ (building.info.type == contentLoader->civzoneNum && !config.show_stockpiles) ||
+ (building.info.type == contentLoader->stockpileNum && !config.show_zones);
if(building.info.type != BUILDINGTYPE_NA && !skipBuilding)
{
@@ -372,11 +372,11 @@ void Block::Draw(){
//if(waterlevel == 7) waterlevel--;
if(water.type == 0)
{
- contentLoader.water[water.index-1].sprite.draw_world(x, y, z, this, (chopThisBlock && this->z == ownerSegment->z + ownerSegment->sizez -2));
+ contentLoader->water[water.index-1].sprite.draw_world(x, y, z, this, (chopThisBlock && this->z == ownerSegment->z + ownerSegment->sizez -2));
}
else
{
- contentLoader.lava[water.index-1].sprite.draw_world(x, y, z, this, (chopThisBlock && this->z == ownerSegment->z + ownerSegment->sizez -2));
+ contentLoader->lava[water.index-1].sprite.draw_world(x, y, z, this, (chopThisBlock && this->z == ownerSegment->z + ownerSegment->sizez -2));
}
}