[iagno] computer-player: yet another assertion



commit 7ead09492107a038d34fe34e1f53abef31af70af
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Sep 20 09:31:54 2014 -0500

    computer-player: yet another assertion

 src/computer-player.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/computer-player.vala b/src/computer-player.vala
index ab50e59..172a99f 100644
--- a/src/computer-player.vala
+++ b/src/computer-player.vala
@@ -314,7 +314,7 @@ public class ComputerPlayer : Object
                     moves.append (x * 8 + y);
 
         if (moves == null)
-            warn_if_reached ();
+            assert_not_reached ();
 
         var i = Random.int_range (0, (int) moves.length ());
         var xy = moves.nth_data (i);


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