1
0

cBeaconEntity fix no world crash

This commit is contained in:
peterbell10 2017-08-10 18:11:27 +01:00 committed by Tiger Wang
parent af1a0188ec
commit 5e81024f89

View File

@ -19,7 +19,10 @@ cBeaconEntity::cBeaconEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, int
m_SecondaryEffect(cEntityEffect::effNoEffect)
{
ASSERT(a_BlockType == E_BLOCK_BEACON);
UpdateBeacon();
if (m_World != nullptr)
{
UpdateBeacon();
}
}