about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/pokeviewer/pokemon_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/pokeviewer/pokemon_controller.rb b/app/controllers/pokeviewer/pokemon_controller.rb index f9f6c15..4b49184 100644 --- a/app/controllers/pokeviewer/pokemon_controller.rb +++ b/app/controllers/pokeviewer/pokemon_controller.rb
@@ -21,7 +21,7 @@ module Pokeviewer
21 end 21 end
22 end 22 end
23 23
24 if pokemon.peek.first == -1 24 if pokemon.peek and pokemon.peek.first == -1
25 @unaccounted = pokemon.next.second 25 @unaccounted = pokemon.next.second
26 else 26 else
27 @unaccounted = [] 27 @unaccounted = []