From dc61f362fd3e4f5f9ba362abca8b99edac33e57c Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Thu, 4 Aug 2022 14:49:14 +0200 Subject: [PATCH] Fix bug in cutscene character identification --- Penumbra/Interop/Resolver/PathResolver.Data.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Penumbra/Interop/Resolver/PathResolver.Data.cs b/Penumbra/Interop/Resolver/PathResolver.Data.cs index 0a3d7fa2..5d1125c0 100644 --- a/Penumbra/Interop/Resolver/PathResolver.Data.cs +++ b/Penumbra/Interop/Resolver/PathResolver.Data.cs @@ -385,7 +385,9 @@ public unsafe partial class PathResolver { collection = null; // Check for the Yourself collection. - if( actor->ObjectIndex is 0 or ObjectReloader.GPosePlayerIdx || name == Dalamud.ClientState.LocalPlayer?.Name.ToString() ) + if( actor->ObjectIndex == 0 + || actor->ObjectIndex == ObjectReloader.GPosePlayerIdx && name.Length > 0 + || name == Dalamud.ClientState.LocalPlayer?.Name.ToString() ) { collection = Penumbra.CollectionManager.ByType( CollectionType.Yourself ); if( collection != null )