mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Fix crash.
This commit is contained in:
parent
6776a7fa7e
commit
4ef8eeb042
2 changed files with 2 additions and 2 deletions
|
|
@ -200,7 +200,7 @@ public unsafe partial class PathResolver
|
||||||
}
|
}
|
||||||
else if( gameObject->OwnerID != 0xE0000000 )
|
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 )
|
if( owner != null )
|
||||||
|
|
|
||||||
|
|
@ -449,7 +449,7 @@ public partial class ModEditWindow
|
||||||
{
|
{
|
||||||
using var id = ImRaii.PushId( i );
|
using var id = ImRaii.PushId( i );
|
||||||
var flag = 1 << 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 ) )
|
( defaultEntry.AttributeMask & flag ) != 0, out var val ) )
|
||||||
{
|
{
|
||||||
var attributes = val ? meta.Entry.AttributeMask | flag : meta.Entry.AttributeMask & ~flag;
|
var attributes = val ? meta.Entry.AttributeMask | flag : meta.Entry.AttributeMask & ~flag;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue