mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fix crash on winning scenario
This commit is contained in:
@@ -229,5 +229,6 @@ IMapObjectObserver::IMapObjectObserver()
|
||||
|
||||
IMapObjectObserver::~IMapObjectObserver()
|
||||
{
|
||||
CGI->mh->removeMapObserver(this);
|
||||
if (CGI && CGI->mh)
|
||||
CGI->mh->removeMapObserver(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user