mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 10:21:09 +00:00
addressed potential 0-pointer issue
This commit is contained in:
parent
f3c7532660
commit
7b8e6f9dda
@ -156,11 +156,13 @@ CSVRender::Object::~Object()
|
||||
{
|
||||
clear();
|
||||
|
||||
if(mPhysics) // preview may not have physics enabled
|
||||
mPhysics->removeObject(mBase->getName());
|
||||
|
||||
if (mBase)
|
||||
{
|
||||
if(mPhysics) // preview may not have physics enabled
|
||||
mPhysics->removeObject(mBase->getName());
|
||||
|
||||
mBase->getCreator()->destroySceneNode (mBase);
|
||||
}
|
||||
}
|
||||
|
||||
bool CSVRender::Object::referenceableDataChanged (const QModelIndex& topLeft,
|
||||
|
Loading…
x
Reference in New Issue
Block a user