Pokedex5E icon indicating copy to clipboard operation
Pokedex5E copied to clipboard

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

Open Jerakin opened this issue 5 years ago • 1 comments

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 avatar Jul 12 '20 08:07 Jerakin

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.

Jerakin avatar Jul 15 '20 21:07 Jerakin