This commit is contained in:
kremsy 2014-01-23 22:08:52 +01:00 committed by Steffen Schröder
parent 0bdb1a7826
commit 0587d811c9

View File

@ -421,6 +421,9 @@ class MapManager implements CallbackListener {
* @param array $callback * @param array $callback
*/ */
public function handleBeginMap(array $callback) { public function handleBeginMap(array $callback) {
if(!isset($callback[1][0]["UId"])) { //TODO why this can happen?
return;
}
if(array_key_exists($callback[1][0]["UId"], $this->maps)) { if(array_key_exists($callback[1][0]["UId"], $this->maps)) {
// Map already exists, only update index // Map already exists, only update index
$this->currentMap = $this->maps[$callback[1][0]["UId"]]; $this->currentMap = $this->maps[$callback[1][0]["UId"]];