Fix issue with spell selection dialog.

Signed-off-by: nppangband <nppangbanddev@verizon.net>