From 4f80f6346a5628d842f86cca2f2d7404b3d65530 Mon Sep 17 00:00:00 2001 From: ai4rei Date: Sun, 5 Dec 2010 00:00:37 +0000 Subject: * Fixed party booking search increasing result counter, even when no results were found, causing crashes from r14516 onwards (bugreport:4615, since r14412). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14558 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 2 ++ src/map/party.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index c75f6759a..d125828bc 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -1,5 +1,7 @@ Date Added +2010/12/04 + * Fixed party booking search increasing result counter, even when no results were found, causing crashes from r14516 onwards (bugreport:4615, since r14412). [Ai4rei] 2010/12/03 * Fixed soul linkers not receiving taekwon angel buffs upon level up (bugreport:3585, since r3657 and r3660, related r6294). [Ai4rei] * Corrected 'chance' in description for bonuses bAddMonsterDropItem and bAddMonsterDropItemGroup (bugreport:4063, partially since r1572). [Ai4rei] diff --git a/src/map/party.c b/src/map/party.c index cb83a36bb..407221cde 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -1147,7 +1147,10 @@ void party_booking_search(struct map_session_data *sd, short level, short mapid, if (pb_ad->p_detail.mapid == mapid) result_list[count] = pb_ad; } - count++; + if( result_list[count] ) + { + count++; + } } iter->destroy(iter); clif_PartyBookingSearchAck(sd->fd, result_list, count, more_result); -- cgit v1.2.3-60-g2f50