1
0
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:
Andrei Kortunov 2022-07-02 23:48:49 +04:00
parent d2a1cc954f
commit e97172bbb2

View File

@ -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();
}