Fix memalloc corruption between saves/changelevel

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5667 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Eukara 2020-04-12 19:14:08 +00:00
parent 82f4b73a44
commit dba2e93f51

View file

@ -447,6 +447,8 @@ static void PDECL PR_memfree (pubprogfuncs_t *ppf, void *memptr)
void PRAddressableFlush(progfuncs_t *progfuncs, size_t totalammount)
{
prinst.addressableused = 0;
prinst.mfreelist = 0;
if (totalammount <= 0) //flush
{
totalammount = prinst.addressablesize;