Fixed the rerecord counter when using more than one save state. Patch by rdragoon.

This commit is contained in:
skidau 2012-04-13 19:50:44 +10:00
parent 722480cb2e
commit a488b2c0ca

View File

@ -627,6 +627,10 @@ void LoadInput(const char *filename)
if (!g_bReadOnly)
{
if (g_rerecords > tmpHeader.numRerecords)
{
tmpHeader.numRerecords = g_rerecords;
}
tmpHeader.numRerecords++;
t_record.Seek(0, SEEK_SET);
t_record.WriteArray(&tmpHeader, 1);