[gnome-nibbles/arnaudb/rework-warps] Add another security.



commit 44fb4f1cbf7971ec435a1fe7dcac50169caf0236
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Jun 22 01:48:54 2020 +0200

    Add another security.

 src/warp.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/warp.vala b/src/warp.vala
index a4278f2..eee1eb3 100644
--- a/src/warp.vala
+++ b/src/warp.vala
@@ -136,7 +136,7 @@ private class WarpManager: Object
             }
         }
 
-        if (warps.size == MAX_WARPS)
+        if (warps.size >= MAX_WARPS)
             return;
 
         warps.add (new Warp.from_source (id, x, y));
@@ -153,7 +153,7 @@ private class WarpManager: Object
             }
         }
 
-        if (warps.size == MAX_WARPS)
+        if (warps.size >= MAX_WARPS)
             return;
 
         warps.add (new Warp.from_target (id, x, y));


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