Skip to content

Commit

Permalink
Fixed Hexen: Successful execution of a deferred ACS script event woul…
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Feb 13, 2011
1 parent 219e992 commit 77c9dab
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions doomsday/plugins/jhexen/src/p_acs.c
Expand Up @@ -354,13 +354,17 @@ void P_CheckACSStore(uint map)
memmove(&ACSStore[i], &ACSStore[i+1], sizeof(acsstore_t) * (ACSStoreSize-i));
}

if(ACSStoreSize != origSize)
if(ACSStoreSize == origSize)
return;

if(ACSStoreSize)
{
if(ACSStoreSize)
ACSStore = Z_Realloc(ACSStore, sizeof(acsstore_t) * ACSStoreSize, PU_STATIC);
else
Z_Free(ACSStore); ACSStore = NULL;
ACSStore = Z_Realloc(ACSStore, sizeof(acsstore_t) * ACSStoreSize, PU_GAMESTATIC);
return;
}

Z_Free(ACSStore);
ACSStore = 0;
}

/**
Expand Down

0 comments on commit 77c9dab

Please sign in to comment.