Fixed a crash when generating a chest
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1549 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
8eedc8f788
commit
afa60c5c35
@ -74,8 +74,10 @@ protected:
|
|||||||
virtual void OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
|
virtual void OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
|
||||||
{
|
{
|
||||||
ASSERT(a_Grid == &m_Contents);
|
ASSERT(a_Grid == &m_Contents);
|
||||||
ASSERT(m_World != NULL);
|
if (m_World != NULL)
|
||||||
m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
|
{
|
||||||
|
m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} ; // tolua_export
|
} ; // tolua_export
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user