1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Fix crash on winning scenario

This commit is contained in:
Ivan Savenko 2023-03-21 18:40:48 +02:00
parent 575fb29a22
commit bfe7bb11ab

View File

@ -229,5 +229,6 @@ IMapObjectObserver::IMapObjectObserver()
IMapObjectObserver::~IMapObjectObserver()
{
CGI->mh->removeMapObserver(this);
if (CGI && CGI->mh)
CGI->mh->removeMapObserver(this);
}