Fix savegamevar/readgamevar breakage from r3579

git-svn-id: https://svn.eduke32.com/eduke32@3636 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2013-04-03 17:26:49 +00:00
parent 385c582efa
commit 73cb94b389
2 changed files with 5 additions and 2 deletions

View file

@ -950,7 +950,10 @@ void CONFIG_WriteSetup(uint32_t flags)
}
SCRIPT_Save(ud.config.scripthandle, setupfilename);
SCRIPT_Free(ud.config.scripthandle);
if ((flags & 2) == 0)
SCRIPT_Free(ud.config.scripthandle);
OSD_Printf("Wrote %s\n",setupfilename);
CONFIG_WriteBinds();
Bfflush(NULL);

View file

@ -401,7 +401,7 @@ void G_SavePlayerMaybeMulti(int32_t slot)
{
Bassert(slot >= 0);
CONFIG_WriteSetup(0);
CONFIG_WriteSetup(2);
if (g_netServer || ud.multimode > 1)
{