Fix crash when selecting non-existent player in store.

This commit is contained in:
Martin Haye 2017-09-13 08:17:46 -07:00
parent 05d96b1243
commit 8aeb6a0595

View File

@ -261,7 +261,7 @@ def _buyFromStore(storeCode, profitPercent)#1
pageNum--
elsif choice == '>' and pageNum+1 < nPages
pageNum++
elsif choice >= '1' and (choice-'1') <= playerCount and (choice-'1') <> playerNum
elsif choice >= '1' and (choice-'1') < playerCount and (choice-'1') <> playerNum
playerNum = choice - '1'
pPlayer = numToPlayer(playerNum)
elsif choice >= 'A' and (choice-'A' < nItemsOnPage)