added cleaning up player's bullets on exit

This commit is contained in:
Kamil 2020-11-11 22:29:58 -05:00 committed by Gent Semaj
parent a483b0fb44
commit 9cee8f2c87

View File

@ -10,6 +10,7 @@
#include "ChatManager.hpp"
#include "Database.hpp"
#include "BuddyManager.hpp"
#include "MobManager.hpp"
#include "settings.hpp"
@ -98,6 +99,9 @@ void PlayerManager::removePlayer(CNSocket* key) {
it++;
}
// remove player's bullets
MobManager::Bullets.erase(view.plr->iID);
std::cout << players.size() << " players" << std::endl;
}