Fix problem.

This commit is contained in:
Ottermandias 2022-07-13 23:27:19 +02:00
parent a47a14fe95
commit ac85c491fd

View file

@ -154,7 +154,7 @@ public unsafe partial class PathResolver
{ {
gameObject = ( GameObject* )Dalamud.Objects.GetObjectAddress( gameObjectIdx ); gameObject = ( GameObject* )Dalamud.Objects.GetObjectAddress( gameObjectIdx );
var draw = ( DrawObject* )drawObject; var draw = ( DrawObject* )drawObject;
if( gameObject != null && gameObject->DrawObject == draw || gameObject->DrawObject == draw->Object.ParentObject ) if( gameObject != null && gameObject->DrawObject == draw || draw != null && gameObject->DrawObject == draw->Object.ParentObject )
{ {
return true; return true;
} }