1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Fix subObject identification

This commit is contained in:
AlexVinS
2015-11-16 17:38:42 +03:00
parent b56b7017ba
commit 3f79d001c1
4 changed files with 24 additions and 6 deletions

View File

@@ -143,7 +143,7 @@ const std::string & CGObjectInstance::getStringId() const
if(stringId == "")
{
boost::format fmt("%s_%d");
fmt % "object" % id.getNum();
fmt % typeName % id.getNum();
stringId = fmt.str();
}