OSDN Git Service

[VM][SN76489AN] Fix TYPO on load_state().
authorK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 30 May 2018 19:06:44 +0000 (04:06 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 30 May 2018 19:06:44 +0000 (04:06 +0900)
source/src/vm/sn76489an.cpp

index 65a94d2..5543e5b 100644 (file)
@@ -225,7 +225,7 @@ bool SN76489AN::load_state(FILEIO* state_fio)
        }
        state_fio->Fread(regs, sizeof(regs), 1);
        index = state_fio->FgetInt32();
-       state_fio->Fwrite(ch, sizeof(ch), 1);
+       state_fio->Fread(ch, sizeof(ch), 1);
        noise_gen = state_fio->FgetUint32();
        mute = state_fio->FgetBool();
        cs = state_fio->FgetBool();