1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Remove MetaString method that can't be used with modded objects

This commit is contained in:
Ivan Savenko
2024-12-24 15:04:01 +00:00
parent ec25eb557b
commit 101fd694b9
4 changed files with 3 additions and 9 deletions

View File

@@ -45,7 +45,7 @@ std::string CGMarket::getPopupText(PlayerColor player) const
return getHoverText(player);
MetaString message = MetaString::createFromRawString("{%s}\r\n\r\n%s");
message.replaceName(ID);
message.replaceName(ID, subID);
message.replaceTextID(TextIdentifier(getObjectHandler()->getBaseTextID(), "description").get());
return message.toString();
}