Fix crash in standalone settings mode

This commit is contained in:
RichardG867
2020-11-19 15:49:32 -03:00
parent bcfb5f464d
commit 833635afaa

View File

@@ -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 );
}