Fix crash when editing pokemon in gen 3

Fix #66