Răsfoiți Sursa

fix CGObjectInstance `subTypeName` to include mod id

godric3 1 an în urmă
părinte
comite
ddfc212a03
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      lib/mapObjectConstructors/AObjectTypeHandler.cpp

+ 1 - 1
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;
 }