1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Merge pull request #4163 from godric3/fix-serialization-of-subtype-to-include-mod-id

fix CGObjectInstance `subTypeName` to include mod id
This commit is contained in:
Ivan Savenko 2024-06-19 21:29:06 +03:00 committed by GitHub
commit 85d170af70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,7 +129,7 @@ void AObjectTypeHandler::preInitObject(CGObjectInstance * obj) const
obj->ID = Obj(type);
obj->subID = subtype;
obj->typeName = typeName;
obj->subTypeName = subTypeName;
obj->subTypeName = getJsonKey();
obj->blockVisit = blockVisit;
obj->removable = removable;
}