summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-12-01 19:07:54 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-12-01 19:07:54 +0100
commit7586069829af86a03f900daebc0cbf9622071f30 (patch)
tree3e48bc6ada011dc2f44772f1c0e14268f12caf79 /src/Generating
parentDungeons spawners now spawn mobs (diff)
downloadcuberite-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 '')
-rw-r--r--src/Generating/DungeonRoomsFinisher.cpp2
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);
}