Skip to content

Commit

Permalink
bug fix xd
Browse files Browse the repository at this point in the history
  • Loading branch information
ZyMa-1 committed Feb 18, 2024
1 parent d4a9c85 commit 29a3d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conways_game_of_life/core/graphics_view/GameScene.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def _handle_board_changed(self):
# Update the active cell, so it does not go off board
if self._active_cell is not None:
if self._active_cell[0] >= self._engine.rows:
self._active_cell = (self._engine.rows, self._active_cell[1])
self._active_cell = (self._engine.rows - 1, self._active_cell[1])
if self._active_cell[1] >= self._engine.cols:
self._active_cell = (self._active_cell[0], self._engine.cols - 1)

Expand Down

0 comments on commit 29a3d4d

Please sign in to comment.