summaryrefslogtreecommitdiff
path: root/src
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 /src
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
Diffstat (limited to 'src')
-rw-r--r--src/map/party.c2
1 files changed, 1 insertions, 1 deletions
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;