moved bullets removal call

This commit is contained in:
Kamil 2020-11-17 03:23:34 +01:00 committed by Gent Semaj
parent d17890af68
commit c77f99e849

View File

@ -70,6 +70,9 @@ void PlayerManager::removePlayer(CNSocket* key) {
GroupManager::groupKickPlayer(view.plr);
// remove player's bullets
MobManager::Bullets.erase(view.plr->iID);
// save player to DB
Database::updatePlayer(view.plr);
@ -99,9 +102,6 @@ void PlayerManager::removePlayer(CNSocket* key) {
it++;
}
// remove player's bullets
MobManager::Bullets.erase(view.plr->iID);
std::cout << players.size() << " players" << std::endl;
}