OSDN Git Service

[VM][DEVICE] Enable to build with new state framework.
[csp-qt/common_source_project-fm7.git] / source / src / vm / mb8877.cpp
index 70eb29b..ea561dc 100644 (file)
@@ -2024,6 +2024,7 @@ bool MB8877::process_state(FILEIO* state_fio, bool loading)
                state_fio->StateValue(fdc[i].prev_clock);
        }
        for(int i = 0; i < array_length(disk); i++) {
+               if(disk[i] == NULL) continue;
                if(!disk[i]->process_state(state_fio, loading)) {
                        return false;
                }