mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-04-01 17:20:04 +00:00
Removed redundant checks for a nullptr from PlayerManager::getPlayer()
These were written in desparation and never should have been there in the first place.
This commit is contained in:
@@ -74,13 +74,6 @@ void CNShardServer::_killConnection(CNSocket* cns) {
|
||||
|
||||
Player* plr = PlayerManager::getPlayer(cns);
|
||||
|
||||
if (plr == nullptr) { // this shouldn't happen if everything works correctly...
|
||||
PlayerManager::removePlayer(cns);
|
||||
|
||||
// also, hopefully the player's progress was already saved since the last db save interval, but rip those 2 mins of progress lol
|
||||
return;
|
||||
}
|
||||
|
||||
int64_t key = plr->SerialKey;
|
||||
|
||||
PlayerManager::removePlayer(cns); // removes the player from the list and saves it to DB
|
||||
|
||||
Reference in New Issue
Block a user