Fix crash.

This commit is contained in:
Ottermandias 2022-07-14 11:07:23 +02:00
parent fff3f6d1cb
commit e9a2744131

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 || draw != null && gameObject->DrawObject == draw->Object.ParentObject ) if( gameObject != null && ( gameObject->DrawObject == draw || draw != null && gameObject->DrawObject == draw->Object.ParentObject ) )
{ {
return true; return true;
} }