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:
parent
82f4b73a44
commit
dba2e93f51
1 changed files with 2 additions and 0 deletions
|
@ -447,6 +447,8 @@ static void PDECL PR_memfree (pubprogfuncs_t *ppf, void *memptr)
|
||||||
void PRAddressableFlush(progfuncs_t *progfuncs, size_t totalammount)
|
void PRAddressableFlush(progfuncs_t *progfuncs, size_t totalammount)
|
||||||
{
|
{
|
||||||
prinst.addressableused = 0;
|
prinst.addressableused = 0;
|
||||||
|
prinst.mfreelist = 0;
|
||||||
|
|
||||||
if (totalammount <= 0) //flush
|
if (totalammount <= 0) //flush
|
||||||
{
|
{
|
||||||
totalammount = prinst.addressablesize;
|
totalammount = prinst.addressablesize;
|
||||||
|
|
Loading…
Reference in a new issue