assert NULL EntityItem::_physicsInfo in dtor

This commit is contained in:
Andrew Meadows 2014-12-29 15:27:54 -08:00
parent 213133c705
commit 97f44b64fc

View file

@ -115,6 +115,8 @@ EntityItem::EntityItem(const EntityItemID& entityItemID, const EntityItemPropert
} }
EntityItem::~EntityItem() { EntityItem::~EntityItem() {
// be sure to clean up _physicsInfo before calling this dtor
assert(_physicsInfo == NULL);
} }
EntityPropertyFlags EntityItem::getEntityProperties(EncodeBitstreamParams& params) const { EntityPropertyFlags EntityItem::getEntityProperties(EncodeBitstreamParams& params) const {