1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 21:45:33 +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(); clear();
if (mBase)
{
if(mPhysics) // preview may not have physics enabled if(mPhysics) // preview may not have physics enabled
mPhysics->removeObject(mBase->getName()); mPhysics->removeObject(mBase->getName());
if (mBase)
mBase->getCreator()->destroySceneNode (mBase); mBase->getCreator()->destroySceneNode (mBase);
} }
}
bool CSVRender::Object::referenceableDataChanged (const QModelIndex& topLeft, bool CSVRender::Object::referenceableDataChanged (const QModelIndex& topLeft,
const QModelIndex& bottomRight) const QModelIndex& bottomRight)