Fixed a bug where SP forwards were not unregistered

Fixed a bug where pfn_touch might not be called correctly
This commit is contained in:
David Anderson
2004-09-05 20:03:01 +00:00
parent 7d3d04b13d
commit c0d73ce572
3 changed files with 13 additions and 2 deletions

View File

@ -236,8 +236,11 @@ void ServerActivate(edict_t *pEdictList, int edictCount, int clientMax)
for(int f = 1; f <= gpGlobals->maxClients;f++)
g_player_edicts[f]=pEdictList + f;
Msg.clear();
register int i = 0;
register int i = 0, j = 0;
for (i=0; i<256; i++) {
for (j=0; j<256; j++)
if (msgHooks[i].at(j) != -1)
MF_UnregisterSPForward(msgHooks[i].at(j));
msgHooks[i].clear();
msgBlocks[i] = 0;
}