[gnome-nibbles/arnaudb/rework-warps: 33/33] Add another security.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/rework-warps: 33/33] Add another security.
- Date: Tue, 23 Jun 2020 11:19:55 +0000 (UTC)
commit 5810e482d1d30d5ce9855a3993b6cf189c9c3b61
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]