fix for when screen layout options somehow get messed up

This commit is contained in:
SuuperW 2020-03-25 13:45:18 -05:00
parent bcc4fb0bab
commit cb73761ff6
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
public bool PutSettings(MelonSettings o)
{
if (o == null)
if (o == null || o.screenOptions == null)
{
o = new MelonSettings();
o.screenOptions = new ScreenLayoutSettings();