From 833635afaa02fc602d79f0be0a03bd49f9818e9d Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 19 Nov 2020 15:49:32 -0300 Subject: [PATCH] Fix crash in standalone settings mode --- src/mem/rom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/rom.c b/src/mem/rom.c index 56bc6314f..fc827539b 100644 --- a/src/mem/rom.c +++ b/src/mem/rom.c @@ -364,7 +364,7 @@ bios_add(void) { int temp_cpu_type, temp_cpu_16bitbus = 1; - if (AT) { + if (AT && cpu_s) { temp_cpu_type = cpu_s->cpu_type; temp_cpu_16bitbus = (temp_cpu_type == CPU_286 || temp_cpu_type == CPU_386SX || temp_cpu_type == CPU_486SLC || temp_cpu_type == CPU_IBM386SLC || temp_cpu_type == CPU_IBM486SLC ); }