[gnome-games] chess: Fix crash starting new game when viewing history of a previous one
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] chess: Fix crash starting new game when viewing history of a previous one
- Date: Sat, 19 Feb 2011 07:08:03 +0000 (UTC)
commit f094fd7c31761c1adeb33efd6455282188dbca35
Author: Robert Ancell <robert ancell canonical com>
Date: Sat Feb 19 18:07:56 2011 +1100
chess: Fix crash starting new game when viewing history of a previous one
glchess/src/chess-scene.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glchess/src/chess-scene.vala b/glchess/src/chess-scene.vala
index 36eb187..8fd38ff 100644
--- a/glchess/src/chess-scene.vala
+++ b/glchess/src/chess-scene.vala
@@ -75,6 +75,7 @@ public class ChessScene : Object
set
{
_game = value;
+ _move_number = -1;
selected_rank = -1;
selected_file = -1;
_game.moved.connect (moved_cb);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]