Browse Source

Fix crash related to V hotkey during AI turn

nordsoft 3 năm trước cách đây
mục cha
commit
dffd7c0f24
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      client/mapHandler.cpp

+ 2 - 0
client/mapHandler.cpp

@@ -536,6 +536,8 @@ void CMapHandler::CMapWorldViewBlitter::drawTileOverlay(SDL_Surface * targetSurf
 	for(auto & object : objects)
 	{
 		const CGObjectInstance * obj = object.obj;
+		if(!obj)
+			continue;
 
 		const bool sameLevel = obj->pos.z == pos.z;