small fixes

This commit is contained in:
kremsy 2014-01-31 19:00:01 +01:00 committed by Steffen Schröder
parent 6b056e3cfa
commit ab524cc1f7
2 changed files with 4 additions and 1 deletions

View File

@ -175,6 +175,9 @@ class SimpleStatsList implements ManialinkPageAnswerListener, CallbackListener,
//Description Label
$i = 2;
foreach($this->statArray as $statArray) {
if(!isset($labels[$i]))
break;
/** @var Label_Text $labels [] */
$labels[$i]->setAction(self::ACTION_SORT_STATS . '.' . $statArray["Name"]);
$script->addTooltip($labels[$i], $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => '$o ' . $statArray["Name"]));

View File

@ -222,7 +222,7 @@ class StatisticCollector implements CallbackListener {
switch($callbackName) {
case 'LibXmlRpc_OnShoot':
$this->handleOnShoot($callback[1][1][0], $callback[1][1][3]);
$this->handleOnShoot($callback[1][1][0], $callback[1][1][1]);
break;
case 'LibXmlRpc_OnHit':
$shooter = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]);