1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Fix build

This commit is contained in:
Ivan Savenko
2025-02-21 16:00:59 +00:00
parent 645b95ba02
commit cbcd48aabb
8 changed files with 15 additions and 15 deletions

View File

@ -24,8 +24,6 @@
#include "../../lib/mapObjects/ObjectTemplate.h"
#include "../../lib/mapping/CMap.h"
std::unique_ptr<CMapHandler> MAPHANDLER = nullptr;
bool CMapHandler::hasOngoingAnimations()
{
for(auto * observer : observers)
@ -242,6 +240,5 @@ IMapObjectObserver::IMapObjectObserver()
IMapObjectObserver::~IMapObjectObserver()
{
if (LIBRARY && MAPHANDLER)
GAME->map().removeMapObserver(this);
GAME->map().removeMapObserver(this);
}