[iagno] computer-player: yet another assertion
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] computer-player: yet another assertion
- Date: Sat, 20 Sep 2014 14:32:14 +0000 (UTC)
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]