mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Fix bug in cutscene character identification
This commit is contained in:
parent
4a008fbc3e
commit
dc61f362fd
1 changed files with 3 additions and 1 deletions
|
|
@ -385,7 +385,9 @@ public unsafe partial class PathResolver
|
||||||
{
|
{
|
||||||
collection = null;
|
collection = null;
|
||||||
// Check for the Yourself collection.
|
// 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 );
|
collection = Penumbra.CollectionManager.ByType( CollectionType.Yourself );
|
||||||
if( collection != null )
|
if( collection != null )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue