Jerakin / Pokedex5E

GNU General Public License v3.0
95 stars 30 forks source link

screens/change_pokemon/change_pokemon.lua:232: attempt to index a nil value #460

Open Jerakin opened 4 years ago

Jerakin commented 4 years ago
1.11.2 - lua - screens/change_pokemon/change_pokemon.lua:232: attempt to index a nil value - 
stack traceback:
    screens/change_pokemon/change_pokemon.lua:232: in function 'redraw_moves'
    screens/change_pokemon/change_pokemon.lua:283: in function 'redraw'
    screens/change_pokemon/change_pokemon.lua:352: in function 'redraw'
    screens/change_pokemon/edit/edit.gui_script:58: in function <screens/change_pokemon/edit/edit.gui_script:49>
    [C]: in function 'resume'
    monarch/monarch.lua:893: in function 'on_message'
    monarch/screen_factory.script:43: in function <monarch/screen_factory.script:35>
Jerakin commented 4 years ago

Hard to diagnose this error. There are two table index look ups on the same line local move_node = move_buttons_list[data.index].text Hard to understand without more context if it where data or move_buttons_list that where the culprit.