[gnome-games] iagno: Fix crash undoing at the start of the game



commit ee9388378aab3c83f7ceadce4c9423c05b9c06b3
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Feb 6 17:31:35 2012 +1100

    iagno: Fix crash undoing at the start of the game

 iagno/src/game.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/iagno/src/game.vala b/iagno/src/game.vala
index f0eff3c..c1f2f7f 100644
--- a/iagno/src/game.vala
+++ b/iagno/src/game.vala
@@ -246,6 +246,9 @@ public class Game
 
     public void undo (int count = 1)
     {
+        if (!can_undo)
+            return;
+
         if (count < 1)
             return;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]