Skip to content

Commit

Permalink
BF: Fix uninitialised arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Debilski committed Jun 5, 2023
1 parent 48668f6 commit 2427a5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pelita/ui/qt/qt_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,10 @@ def update_arrow(self):
self.arrow.move(old_pos, BROWN, self.game_state['bots'][bot], old_pos, success=self.game_state['requested_moves'][bot]['success'])
self.show_grid()


def show_grid(self):
if not self.arrow:
return

if self.grid:
self.arrow.show()
else:
Expand Down

0 comments on commit 2427a5e

Please sign in to comment.