Fix crash.

This commit is contained in:
Ottermandias 2022-06-03 11:04:11 +02:00
parent 6776a7fa7e
commit 4ef8eeb042
2 changed files with 2 additions and 2 deletions

View file

@ -200,7 +200,7 @@ public unsafe partial class PathResolver
}
else if( gameObject->OwnerID != 0xE0000000 )
{
owner = ( GameObject* )Dalamud.Objects.SearchById( gameObject->OwnerID )?.Address;
owner = ( GameObject* )(Dalamud.Objects.SearchById( gameObject->OwnerID )?.Address ?? IntPtr.Zero);
}
if( owner != null )