diff options
Diffstat (limited to '')
-rw-r--r-- | source/BlockEntities/BlockEntityWithItems.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/BlockEntities/BlockEntityWithItems.h b/source/BlockEntities/BlockEntityWithItems.h index 77f4ebe2e..587b10461 100644 --- a/source/BlockEntities/BlockEntityWithItems.h +++ b/source/BlockEntities/BlockEntityWithItems.h @@ -74,8 +74,10 @@ protected: virtual void OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
{
ASSERT(a_Grid == &m_Contents);
- ASSERT(m_World != NULL);
- m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
+ if (m_World != NULL)
+ {
+ m_World->MarkChunkDirty(GetChunkX(), GetChunkZ());
+ }
}
} ; // tolua_export
|