From d778abc6159c257b5ab7b7a9f74e934fac78f553 Mon Sep 17 00:00:00 2001 From: HarpyWar <harpywar@gmail.com> Date: Fri, 18 Dec 2020 12:07:10 +0300 Subject: [PATCH] clear maplists on /rehash to except overflow https://github.com/pvpgn/pvpgn-server/issues/429 --- src/bnetd/anongame_maplists.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/bnetd/anongame_maplists.cpp b/src/bnetd/anongame_maplists.cpp index 4d1eebc..1575874 100644 --- a/src/bnetd/anongame_maplists.cpp +++ b/src/bnetd/anongame_maplists.cpp @@ -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; } }