Skip to content

Commit

Permalink
Fixed issue #101
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasKovacs committed Apr 22, 2016
1 parent cfef815 commit 18d400c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private function hazardShips($fleet_row, $fleet_points, $current_fleet)
$found_chance = $fleet_points / $fleet_row['fleet_amount'];

for ($ship = 202; $ship <= 215; $ship++) {
if ($current_fleet[$ship] != 0) {
if (isset($current_fleet[$ship]) && $current_fleet[$ship] != 0) {
$found_ship[$ship] = round($current_fleet[$ship] * $ships_ratio[$ship] * $found_chance) + 1;

if ($found_ship[$ship] > 0) {
Expand Down

0 comments on commit 18d400c

Please sign in to comment.