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:
parent
575fb29a22
commit
bfe7bb11ab
@ -229,5 +229,6 @@ IMapObjectObserver::IMapObjectObserver()
|
||||
|
||||
IMapObjectObserver::~IMapObjectObserver()
|
||||
{
|
||||
CGI->mh->removeMapObserver(this);
|
||||
if (CGI && CGI->mh)
|
||||
CGI->mh->removeMapObserver(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user