Fix uninitialized value warning from Valgrind.

This commit is contained in:
Alcaro 2014-02-18 22:34:23 +01:00
parent 291a578a0a
commit d81afb2383
1 changed files with 3 additions and 0 deletions

View File

@ -619,6 +619,9 @@ void S9xAPUSaveState (uint8 *block)
SNES::set_le32(ptr, SNES::dsp.clock);
ptr += sizeof(int32);
memcpy (ptr, SNES::cpu.registers, 4);
ptr += sizeof(int32);
memset (ptr, 0, SPC_SAVE_STATE_BLOCK_SIZE-(ptr-block));
}
void S9xAPULoadState (uint8 *block)