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:
parent
f3c7532660
commit
7b8e6f9dda
1 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue