Ver Fonte

Fix crash on hovering prison

Ivan Savenko há 2 anos atrás
pai
commit
57df0a6995
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/mapObjects/CGHeroInstance.cpp

+ 1 - 1
lib/mapObjects/CGHeroInstance.cpp

@@ -472,7 +472,7 @@ std::string CGHeroInstance::getObjectName() const
 		return hoverName;
 	}
 	else
-		return CGObjectInstance::getObjectName();
+		return VLC->objtypeh->getObjectName(ID, 0);
 }
 
 ui8 CGHeroInstance::maxlevelsToMagicSchool() const