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



commit 9db7f7f67992ff5c58281137672c9bb7f4506638
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]