Explorar el Código

Fix potential assertion failure on map load

Ivan Savenko hace 2 años
padre
commit
9565cae3cb
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      lib/mapObjects/CGHeroInstance.cpp

+ 2 - 1
lib/mapObjects/CGHeroInstance.cpp

@@ -1000,7 +1000,8 @@ std::string CGHeroInstance::getNameTextID() const
 	if (type)
 		return type->getNameTextID();
 
-	assert(0);
+	// FIXME: called by logging from some specialties (mods?) before type is set on deserialization
+	// assert(0);
 	return "";
 }