Browse Source

Fix crash related to V hotkey during AI turn

nordsoft 3 years ago
parent
commit
dffd7c0f24
1 changed files with 2 additions and 0 deletions
  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;