mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Fix potential assertion failure on map load
This commit is contained in:
parent
a19c9eccc4
commit
9565cae3cb
@ -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 "";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user