mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
resource translation
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "../callback/IGameInfoCallback.h"
|
||||
#include "../entities/faction/CTownHandler.h"
|
||||
#include "../entities/hero/CHeroClass.h"
|
||||
#include "../entities/ResourceTypeHandler.h"
|
||||
#include "../mapObjects/CGHeroInstance.h"
|
||||
#include "../mapObjects/CGTownInstance.h"
|
||||
#include "../mapObjects/MiscObjects.h"
|
||||
@@ -60,7 +61,7 @@ bool ResourceInstanceConstructor::hasNameTextID() const
|
||||
|
||||
std::string ResourceInstanceConstructor::getNameTextID() const
|
||||
{
|
||||
return TextIdentifier("core", "restypes", resourceType.getNum()).get();
|
||||
return LIBRARY->resourceTypeHandler->getById(resourceType)->getNameTextID();
|
||||
}
|
||||
|
||||
GameResID ResourceInstanceConstructor::getResourceType() const
|
||||
|
||||
Reference in New Issue
Block a user