mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-10-02 00:54:48 +00:00
Fix crash when selecting non-existent player in store.
This commit is contained in:
parent
05d96b1243
commit
8aeb6a0595
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user