diff --git a/ag/info/attacken.php b/ag/info/attacken.php index d8ea1fa..c433425 100644 --- a/ag/info/attacken.php +++ b/ag/info/attacken.php @@ -82,8 +82,8 @@ function showAttDetails($at_id) { $rassen_1 = explode(",", $at_info['rassen']); $npc_type = getRaceTypeName('NPC'); // do not remove npc (there is a separate setting for this) - for($runden = 1; $runden <= count($rassen_1); $runden++) { - $rasse = getRaceById($runden); + for($runden = 0; $runden < count($rassen_1); $runden++) { + $rasse = getRaceById($rassen_1[$runden]); if($rasse['type'] == $npc_type['id']){ continue; }