Stars: Fix regression.

New test file regression-test-files/cash/Stars/Flop/LHE-10max-USD-1.00-2.00-No_max_seats.txt crashed Stars.

Put guard to make sure MAX has a value
This commit is contained in:
Worros 2010-12-06 12:48:25 +08:00
parent 352c40baab
commit 96b55a5bff

View File

@ -297,7 +297,7 @@ class PokerStars(HandHistoryConverter):
hand.tablename = info[key]
if key == 'BUTTON':
hand.buttonpos = info[key]
if key == 'MAX':
if key == 'MAX' and info[key] != None:
hand.maxseats = int(info[key])
if key == 'MIXED':