Correct state restoring (it does something but still fails)

This commit is contained in:
simon.kagstrom 2009-05-21 09:53:41 +00:00
parent 0d03c4b786
commit cad26b24bd

View File

@ -343,12 +343,12 @@ static void save_load_state(int which)
if (!name)
return;
snprintf(db, 255, "%s/%s", dir, name);
if (which == 0)
restore_state(db);
restore_state(name);
else
unlink(db);
unlink(name);
free(name);
} break;
case 1: /* Save state */
snprintf(db, 255, "%s/%s.sav", dir, fb);