From 3e53a34615c2535dbed3d7c2c7a00f1ef3eaff0a Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 17 Jan 2015 18:49:03 -0200 Subject: Another ~10 Fixes Addressing out of bounds read/write. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind --- src/map/duel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/duel.c') diff --git a/src/map/duel.c b/src/map/duel.c index 0ae2770c4..98fa91d3e 100644 --- a/src/map/duel.c +++ b/src/map/duel.c @@ -80,7 +80,7 @@ int duel_create(struct map_session_data* sd, const unsigned int maxpl) { int i=1; char output[256]; - while(duel->list[i].members_count > 0 && i < MAX_DUEL) i++; + while(i < MAX_DUEL && duel->list[i].members_count > 0) i++; if(i == MAX_DUEL) return 0; duel->count++; -- cgit v1.2.3-60-g2f50