Fix crash in sell when selecting non-existent player.

This commit is contained in:
Martin Haye 2017-09-13 08:20:21 -07:00
parent 8aeb6a0595
commit cb0c203502

View File

@ -361,7 +361,7 @@ def _sellToStore(profitPercent)#1
pageNum--
elsif choice == '>' and pageNum+1 < nPages
pageNum++
elsif choice >= '1' and (choice-'1') <= playerCount
elsif choice >= '1' and (choice-'1') < playerCount and (choice-'1') <> playerNum
playerNum = choice - '1'
pPlayer = numToPlayer(playerNum)
totalItems = iterateSellables(9999, 0)