clear maplists on /rehash to except overflow https://github.com/pvpgn/pvpgn-server/issues/429

This commit is contained in:
HarpyWar 2020-12-18 12:07:10 +03:00
parent f707680980
commit d778abc615

View file

@ -379,7 +379,16 @@ namespace pvpgn
extern void anongame_tournament_maplists_destroy(void)
{
return; /* nothing to destroy */
int j;
// reset
for (j = 0; j < ANONGAME_TYPES; j++) {
maplists_war3[j][0] = 0;
maplists_w3xp[j][0] = 0;
maplists_yuri[j][0] = 0;
maplists_ral2[j][0] = 0;
}
return;
}
}