mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix Player Collection identification.
This commit is contained in:
parent
69703ed97f
commit
2900351b9a
2 changed files with 8 additions and 5 deletions
|
|
@ -172,7 +172,7 @@ public sealed partial class ActorManager : IDisposable
|
|||
|
||||
public unsafe ActorIdentifier GetCurrentPlayer()
|
||||
{
|
||||
var address = (Character*)(_objects[0]?.Address ?? IntPtr.Zero);
|
||||
var address = (Character*)_objects.GetObjectAddress(0);
|
||||
return address == null
|
||||
? ActorIdentifier.Invalid
|
||||
: CreateIndividualUnchecked(IdentifierType.Player, new ByteString(address->GameObject.Name), address->HomeWorld,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue