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

Remove access to text translation system from AI

This commit is contained in:
Ivan Savenko
2024-07-03 21:13:55 +00:00
parent 40f17d654d
commit 95d8e447b2
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ namespace Goals
{
objid = obj->id.getNum();
tile = obj->visitablePos();
name = obj->getObjectName();
name = obj->typeName;
}
bool operator==(const CaptureObject & other) const override;

View File

@@ -26,7 +26,7 @@ ExecuteHeroChain::ExecuteHeroChain(const AIPath & path, const CGObjectInstance *
if(obj)
{
objid = obj->id.getNum();
targetName = obj->getObjectName() + tile.toString();
targetName = obj->typeName + tile.toString();
}
else
{