Skip to content

Commit

Permalink
Using static cast for Dungeon spawners
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLSPACE committed Dec 1, 2014
1 parent c0b08a6 commit 7586069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generating/DungeonRoomsFinisher.cpp
Expand Up @@ -265,7 +265,7 @@ class cDungeonRoom :
)
{
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);
}
Expand Down

0 comments on commit 7586069

Please sign in to comment.