fix more fish bingo crashes
This commit is contained in:
parent
d6c0975c05
commit
744f9c4d3b
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ class BingoCardCell(DirectButton, FSM.FSM):
|
|||
DirectButton.__init__(self, parent)
|
||||
FSM.FSM.__init__(self, 'BingoCardCell')
|
||||
self.initialiseoptions(BingoCardCell)
|
||||
self.parent = parent
|
||||
self._parent = parent
|
||||
self.fish = fish
|
||||
self.cellId = cellId
|
||||
self.request('Off')
|
||||
|
|
|
@ -194,7 +194,7 @@ class BingoCardGui(DirectFrame):
|
|||
for i in range(rowSize):
|
||||
for j in range(self.game.getColSize()):
|
||||
color = self.getCellColor(i * rowSize + j)
|
||||
if i * rowSize + j == self.game.getCardSize() / 2:
|
||||
if i * rowSize + j == self.game.getCardSize() // 2:
|
||||
tmpFish = 'Free'
|
||||
else:
|
||||
choice = rng.randrange(0, len(fishList))
|
||||
|
|
Loading…
Reference in a new issue