From 03fe2c69927540a213e728bfee2454c533196f01 Mon Sep 17 00:00:00 2001 From: Kirill <95088806+kirill-mapper@users.noreply.github.com> Date: Wed, 25 Sep 2024 13:44:11 +0300 Subject: [PATCH] Fix MLO Instance Data Fixing MLO Instance Data - groupId, floorId, defaultEntitySets*, numExitPortals, MLOInstflags. --- CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs b/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs index 81955e3..116bfeb 100644 --- a/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs +++ b/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs @@ -1813,8 +1813,8 @@ namespace CodeWalker.GameFiles { //transform interior entities into world space... var mloa = Archetype as MloArchetype; - MloInstance = new MloInstanceData(this, mloa); - MloInstance._Instance = new CMloInstanceDef { CEntityDef = _CEntityDef }; + var mloi = MloInstance; + MloInstance = new MloInstanceData(this, mloa) { Instance = mloi.Instance, defaultEntitySets = mloi.defaultEntitySets }; if (mloa != null) { if (!IsMlo)