Browse Source

Fix potential assertion failure on map load

Ivan Savenko 2 years ago
parent
commit
9565cae3cb
1 changed files with 2 additions and 1 deletions
  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 "";
 }