diff --git a/client/mapHandler.cpp b/client/mapHandler.cpp index e08938d31..84c90a056 100644 --- a/client/mapHandler.cpp +++ b/client/mapHandler.cpp @@ -709,6 +709,14 @@ CMapHandler::CMapPuzzleViewBlitter::CMapPuzzleViewBlitter(CMapHandler * parent) unblittableObjects.push_back(Obj::HOLE); } +CMapHandler::CMapBlitter::CMapBlitter(CMapHandler * p) + :parent(p), tileSize(0), halfTileSizeCeil(0), info(nullptr) +{ + +} + +CMapHandler::CMapBlitter::~CMapBlitter() = default; + void CMapHandler::CMapBlitter::drawFrame(SDL_Surface * targetSurf) const { Rect destRect(realTileRect); diff --git a/client/mapHandler.h b/client/mapHandler.h index 8acfccb25..90a3f1938 100644 --- a/client/mapHandler.h +++ b/client/mapHandler.h @@ -254,8 +254,8 @@ class CMapHandler IImage * findFlagBitmapInternal(std::shared_ptr animation, int anim, int group, ui8 dir, bool moving) const; public: - CMapBlitter(CMapHandler * p) : parent(p) {} - virtual ~CMapBlitter(){} + CMapBlitter(CMapHandler * p); + virtual ~CMapBlitter(); void blit(SDL_Surface * targetSurf, const MapDrawingInfo * info); /// helper method that chooses correct bitmap(s) for given object AnimBitmapHolder findObjectBitmap(const CGObjectInstance * obj, int anim) const;