mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Make string instance names persistent
This commit is contained in:
@ -139,18 +139,6 @@ CGObjectInstance::~CGObjectInstance()
|
||||
{
|
||||
}
|
||||
|
||||
const std::string & CGObjectInstance::getStringId() const
|
||||
{
|
||||
if(stringId == "")
|
||||
{
|
||||
boost::format fmt("%s_%d");
|
||||
fmt % typeName % id.getNum();
|
||||
stringId = fmt.str();
|
||||
}
|
||||
|
||||
return stringId;
|
||||
}
|
||||
|
||||
void CGObjectInstance::setOwner(PlayerColor ow)
|
||||
{
|
||||
tempOwner = ow;
|
||||
|
Reference in New Issue
Block a user