Fix Self-Actor for GPose.

This commit is contained in:
Ottermandias 2022-07-01 16:20:47 +02:00
parent 1d7829593e
commit 53ff9a8ab3

View file

@ -342,7 +342,7 @@ public unsafe partial class PathResolver
{
collection = null;
// Check for the Yourself collection.
if( actor->ObjectIndex == 0 || name == Dalamud.ClientState.LocalPlayer?.Name.ToString() )
if( actor->ObjectIndex is 0 or ObjectReloader.GPosePlayerIdx || name == Dalamud.ClientState.LocalPlayer?.Name.ToString() )
{
collection = Penumbra.CollectionManager.ByType( CollectionType.Yourself );
if( collection != null )