summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-25 00:49:50 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-25 00:49:50 +0000
commit90e0ece506d4fc438488f88d3f9395ecc7ae085b (patch)
treebec2347f52f3e3e6bb6ea1ea98644c21c97d8d36
parentfe02fc4578e802610df2067123e7d94a659c9d00 (diff)
downloadhercules-90e0ece506d4fc438488f88d3f9395ecc7ae085b.tar.gz
hercules-90e0ece506d4fc438488f88d3f9395ecc7ae085b.tar.bz2
hercules-90e0ece506d4fc438488f88d3f9395ecc7ae085b.tar.xz
hercules-90e0ece506d4fc438488f88d3f9395ecc7ae085b.zip
* Fixed party booking search not interpreting level 0 as 'all levels' and using level as upper rather than lower bound (bugreport:4537, since r14412).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14500 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/party.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 278c8524c..cb517c094 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -1,6 +1,7 @@
Date Added
2010/11/24
+ * Fixed party booking search not interpreting level 0 as 'all levels' and using level as upper rather than lower bound (bugreport:4537, since r14412). [Ai4rei]
* Display a message showing the user where to change MAX_ITEMDELAYS when they have too many entries in the item_delays db. Follow-up to r14455. [Paradox924X]
* Fixed pets with player sprites causing the client to crash while looking for non-existing resources (topic:260895, follow up to r14488). [Ai4rei]
* Fixed calls to pc_delautobonus assuming map_session_data::autobonus2 and map_session_data::autobonus3 arrays having the same size as map_session_data::autobonus (since r13915). [Ai4rei]
diff --git a/src/map/party.c b/src/map/party.c
index e6a7ffd8b..f7aca94dd 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -1172,7 +1172,7 @@ void party_booking_search(struct map_session_data *sd, short level, short mapid,
for( pb_ad = (struct party_booking_ad_info*)iter->first(iter,NULL); iter->exists(iter); pb_ad = (struct party_booking_ad_info*)iter->next(iter,NULL) )
{
- if (pb_ad->index < lastindex || (pb_ad->p_detail.level < level || pb_ad->p_detail.level-15 > level))
+ if (pb_ad->index < lastindex || (level && (pb_ad->p_detail.level < level-15 || pb_ad->p_detail.level > level)))
continue;
if (count >= 10){
more_result = true;