Bugfix:  Fix a bug that could cause the game to freeze while generating a randart.

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