Fixed the rerecord counter when using more than one save state. Patch by rdragoon.
This commit is contained in:
parent
722480cb2e
commit
a488b2c0ca
|
@ -627,6 +627,10 @@ void LoadInput(const char *filename)
|
||||||
|
|
||||||
if (!g_bReadOnly)
|
if (!g_bReadOnly)
|
||||||
{
|
{
|
||||||
|
if (g_rerecords > tmpHeader.numRerecords)
|
||||||
|
{
|
||||||
|
tmpHeader.numRerecords = g_rerecords;
|
||||||
|
}
|
||||||
tmpHeader.numRerecords++;
|
tmpHeader.numRerecords++;
|
||||||
t_record.Seek(0, SEEK_SET);
|
t_record.Seek(0, SEEK_SET);
|
||||||
t_record.WriteArray(&tmpHeader, 1);
|
t_record.WriteArray(&tmpHeader, 1);
|
||||||
|
|
Loading…
Reference in New Issue