Fixed a crash when generating a chest

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1549 0a769ca7-a7f5-676a-18bf-c427514a06d6
master
madmaxoft@gmail.com 2013-06-04 12:34:35 +00:00
parent 8eedc8f788
commit afa60c5c35
1 changed files with 4 additions and 2 deletions

View File

@ -74,9 +74,11 @@ protected:
virtual void OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
{
ASSERT(a_Grid == &m_Contents);
ASSERT(m_World != NULL);
if (m_World != NULL)
{
m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
}
}
} ; // tolua_export