mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
Add a check for null
This commit is contained in:
parent
d2a1cc954f
commit
e97172bbb2
@ -1047,7 +1047,7 @@ public:
|
||||
|
||||
for (ActiveTextFormats::iterator i = mActiveTextFormats.begin (); i != mActiveTextFormats.end (); ++i)
|
||||
{
|
||||
if (mNode != nullptr)
|
||||
if (mNode != nullptr && i->second != nullptr)
|
||||
i->second->destroyDrawItem (mNode);
|
||||
i->second.reset();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user