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

@@ -393,11 +393,6 @@ void MetaString::replaceName(const FactionID & id)
replaceTextID(id.toEntity(VLC)->getNameTextID());
}
void MetaString::replaceName(const MapObjectID & id)
{
replaceTextID(VLC->objtypeh->getObjectName(id, 0));
}
void MetaString::replaceName(const MapObjectID & id, const MapObjectSubID & subId)
{
replaceTextID(VLC->objtypeh->getObjectName(id, subId));