From ddfc212a0323dde805abbc61f6a35522d6653e16 Mon Sep 17 00:00:00 2001 From: godric3 Date: Tue, 18 Jun 2024 21:42:22 +0200 Subject: [PATCH] fix CGObjectInstance `subTypeName` to include mod id --- lib/mapObjectConstructors/AObjectTypeHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapObjectConstructors/AObjectTypeHandler.cpp b/lib/mapObjectConstructors/AObjectTypeHandler.cpp index c3573b761..0871def27 100644 --- a/lib/mapObjectConstructors/AObjectTypeHandler.cpp +++ b/lib/mapObjectConstructors/AObjectTypeHandler.cpp @@ -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; }