small fix

This commit is contained in:
kremsy 2014-02-13 20:46:40 +01:00 committed by Steffen Schröder
parent 765b20d39c
commit 6787012047

View File

@ -268,9 +268,9 @@ class StatisticCollector implements CallbackListener {
} }
break; break;
case 'LibXmlRpc_OnArmorEmpty': case 'LibXmlRpc_OnArmorEmpty':
$shooter = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]); $victim = $this->maniaControl->playerManager->getPlayer($callback[1][1][1]);
$victim = $this->maniaControl->playerManager->getPlayer($callback[1][1][1]); if (isset($callback[1][1][0])) {
if ($shooter != null) { $shooter = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]);
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_KILL, $shooter); $this->maniaControl->statisticManager->incrementStat(self::STAT_ON_KILL, $shooter);
} }
$this->maniaControl->statisticManager->incrementStat(self::STAT_ON_DEATH, $victim); $this->maniaControl->statisticManager->incrementStat(self::STAT_ON_DEATH, $victim);