Browse Source

Fixed CID 1288846

AlexVinS 9 năm trước cách đây
mục cha
commit
418babce81
2 tập tin đã thay đổi với 10 bổ sung2 xóa
  1. 8 0
      client/mapHandler.cpp
  2. 2 2
      client/mapHandler.h

+ 8 - 0
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);

+ 2 - 2
client/mapHandler.h

@@ -254,8 +254,8 @@ class CMapHandler
 		IImage * findFlagBitmapInternal(std::shared_ptr<CAnimation> 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;