Fix MLO Instance Data

Fixing MLO Instance Data - groupId, floorId, defaultEntitySets*, numExitPortals, MLOInstflags.
This commit is contained in:
Kirill 2024-09-25 13:44:11 +03:00 committed by GitHub
parent c45ea83733
commit 03fe2c6992
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)