diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 19:07:54 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 19:07:54 +0100 |
commit | 7586069829af86a03f900daebc0cbf9622071f30 (patch) | |
tree | 3e48bc6ada011dc2f44772f1c0e14268f12caf79 /src/Generating | |
parent | Dungeons spawners now spawn mobs (diff) | |
download | cuberite-7586069829af86a03f900daebc0cbf9622071f30.tar cuberite-7586069829af86a03f900daebc0cbf9622071f30.tar.gz cuberite-7586069829af86a03f900daebc0cbf9622071f30.tar.bz2 cuberite-7586069829af86a03f900daebc0cbf9622071f30.tar.lz cuberite-7586069829af86a03f900daebc0cbf9622071f30.tar.xz cuberite-7586069829af86a03f900daebc0cbf9622071f30.tar.zst cuberite-7586069829af86a03f900daebc0cbf9622071f30.zip |
Diffstat (limited to 'src/Generating')
-rw-r--r-- | src/Generating/DungeonRoomsFinisher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/DungeonRoomsFinisher.cpp b/src/Generating/DungeonRoomsFinisher.cpp index 0267c41fa..492ab1ed9 100644 --- a/src/Generating/DungeonRoomsFinisher.cpp +++ b/src/Generating/DungeonRoomsFinisher.cpp @@ -265,7 +265,7 @@ protected: ) { a_ChunkDesc.SetBlockTypeMeta(CenterX, b, CenterZ, E_BLOCK_MOB_SPAWNER, 0); - cMobSpawnerEntity * MobSpawner = (cMobSpawnerEntity *)a_ChunkDesc.GetBlockEntity(CenterX, b, CenterZ); + cMobSpawnerEntity * MobSpawner = static_cast<cMobSpawnerEntity *>(a_ChunkDesc.GetBlockEntity(CenterX, b, CenterZ)); ASSERT((MobSpawner != nullptr) && (MobSpawner->GetBlockType() == E_BLOCK_MOB_SPAWNER)); MobSpawner->SetEntity(m_MonsterType); } |