1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Fixed loading of object names

This commit is contained in:
Ivan Savenko
2023-01-10 16:24:42 +02:00
parent b13637cdd5
commit f71cbc5d9b
3 changed files with 19 additions and 14 deletions

View File

@ -139,10 +139,9 @@ class CGObjectInstance;
/// Class responsible for creation of objects of specific type & subtype
class DLL_LINKAGE AObjectTypeHandler : public boost::noncopyable
{
RandomMapInfo rmgInfo;
friend class CObjectClassesHandler;
/// Text ID for human-readable name of this object, used for objects like banks and dwellings, if set
boost::optional<std::string> nameTextID;
RandomMapInfo rmgInfo;
JsonNode base; /// describes base template
@ -226,7 +225,6 @@ public:
h & subtype;
h & templates;
h & rmgInfo;
h & nameTextID;
h & modName;
h & typeName;
h & subTypeName;