1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-06 15:45:32 +00:00

addressed potential 0-pointer issue

This commit is contained in:
Marc Zinnschlag 2015-01-15 12:04:23 +01:00
parent f3c7532660
commit 7b8e6f9dda

View file

@ -156,12 +156,14 @@ CSVRender::Object::~Object()
{
clear();
if (mBase)
{
if(mPhysics) // preview may not have physics enabled
mPhysics->removeObject(mBase->getName());
if (mBase)
mBase->getCreator()->destroySceneNode (mBase);
}
}
bool CSVRender::Object::referenceableDataChanged (const QModelIndex& topLeft,
const QModelIndex& bottomRight)