[iagno] Initialize variable.



commit d59176c28ca4c7ae3590fce5ec42dea31aa102b1
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Feb 25 21:37:24 2019 +0100

    Initialize variable.

 src/computer-player.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/computer-player.vala b/src/computer-player.vala
index d7a5a99..0f72c7d 100644
--- a/src/computer-player.vala
+++ b/src/computer-player.vala
@@ -62,7 +62,7 @@ private class ComputerPlayer : Object
 
     /* Indicates the results of the AI's search should be discarded.
      * The mutex is only needed for its memory barrier. */
-    private bool _move_pending;
+    private bool _move_pending = false;
     private RecMutex _move_pending_mutex;
     [CCode (notify = false)] private bool move_pending
     {


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