Fix issue with assigning indexed npcs.

This commit is contained in:
Ottermandias 2023-03-05 14:52:28 +01:00
parent 009499cdf6
commit 64c8f29c47
9 changed files with 31 additions and 29 deletions

View file

@ -256,7 +256,7 @@ public sealed partial class ActorManager : IDisposable
return false;
}
id = FromObject(&other->GameObject, out _, false, true);
id = FromObject(&other->GameObject, out _, false, true, false);
return true;
}
@ -283,7 +283,7 @@ public sealed partial class ActorManager : IDisposable
if (obj != null
&& obj->ObjectKind is (byte)ObjectKind.Player
&& Compare(gameObject, (Character*)obj))
return FromObject(obj, out _, false, true);
return FromObject(obj, out _, false, true, false);
}
return ActorIdentifier.Invalid;