1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-07-04 03:51:39 +00:00

Do not destroy overlay if it was never created (e.g. due to an Ogre exception).

This commit is contained in:
cc9cii 2014-12-01 14:09:22 +11:00
parent 64e1594b41
commit 3b5cd286f6

View file

@ -362,8 +362,11 @@ CSVRender::PagedWorldspaceWidget::~PagedWorldspaceWidget()
delete iter->second;
}
removeRenderTargetListener(mOverlayMask);
delete mOverlayMask;
if(mOverlayMask)
{
removeRenderTargetListener(mOverlayMask);
delete mOverlayMask;
}
}
void CSVRender::PagedWorldspaceWidget::useViewHint (const std::string& hint)