Skip to content

Commit

Permalink
puae: fix crash on null settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vadosnaprimer committed Nov 21, 2024
1 parent 456d37a commit d3713a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BizHawk.Emulation.Cores/Computers/Amiga/PUAE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public partial class PUAE : WaterboxCore

[CoreConstructor(VSystemID.Raw.Amiga)]
public PUAE(CoreLoadParameters<object, PUAESyncSettings> lp)
: base(lp.Comm, lp.SyncSettings.Region is VideoStandard.PAL ? ConfigPAL : ConfigNTSC)
: base(lp.Comm, lp.SyncSettings?.Region is VideoStandard.NTSC ? ConfigNTSC : ConfigPAL)
{
_roms = lp.Roms;
_syncSettings = lp.SyncSettings ?? new();
Expand Down

0 comments on commit d3713a6

Please sign in to comment.