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 )

View file

@ -449,7 +449,7 @@ public partial class ModEditWindow
{
using var id = ImRaii.PushId( i );
var flag = 1 << i;
if( Checkmark( "##attribute", $"{( char )( 'A' + i )}\nDefault Value: ", ( meta.Entry.AttributeMask & flag ) != 0,
if( Checkmark( "##attribute", $"{( char )( 'A' + i )}", ( meta.Entry.AttributeMask & flag ) != 0,
( defaultEntry.AttributeMask & flag ) != 0, out var val ) )
{
var attributes = val ? meta.Entry.AttributeMask | flag : meta.Entry.AttributeMask & ~flag;