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 /Block.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 'Block.cpp')
| -rw-r--r-- | Block.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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));
}
}
|
