diff options
author | shennetsind <ind@henn.et> | 2015-01-17 18:49:03 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2015-01-17 18:49:03 -0200 |
commit | 3e53a34615c2535dbed3d7c2c7a00f1ef3eaff0a (patch) | |
tree | 2f646d420976e459ef585debfca2ae55d3185528 /src/map/duel.c | |
parent | 348044f12d5f683c8945e0eac642f2795050fb4e (diff) | |
download | hercules-3e53a34615c2535dbed3d7c2c7a00f1ef3eaff0a.tar.gz hercules-3e53a34615c2535dbed3d7c2c7a00f1ef3eaff0a.tar.bz2 hercules-3e53a34615c2535dbed3d7c2c7a00f1ef3eaff0a.tar.xz hercules-3e53a34615c2535dbed3d7c2c7a00f1ef3eaff0a.zip |
Another ~10 Fixes
Addressing out of bounds read/write.
Special Thanks to 4144 and Haruna!
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/duel.c')
-rw-r--r-- | src/map/duel.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; |