double erase map bugfix

This commit is contained in:
kremsy 2014-04-09 10:21:34 +02:00 committed by Steffen Schröder
parent 424e9f3261
commit 9fdabeb633

View File

@ -226,6 +226,11 @@ class MapManager implements CallbackListener {
public function removeMap(Player $admin, $uid, $eraseFile = false, $message = true) {
$map = $this->maps[$uid];
if(!$map){
$this->maniaControl->chat->sendError("Map is not existing anymore)", $admin->login);
return;
}
// Unset the Map everywhere
$this->mapQueue->removeFromMapQueue($admin, $map->uid);