summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-28 13:44:23 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-28 13:44:23 +0000
commite4c1f576bf32e13a640670de3656765bfa966198 (patch)
tree8742ec02945ec58e533100ff2d70b7b3a6c63f1a /src/map/clif.c
parentea5bac422d3d0b257c2f6f877b9780ec20a782ed (diff)
downloadhercules-e4c1f576bf32e13a640670de3656765bfa966198.tar.gz
hercules-e4c1f576bf32e13a640670de3656765bfa966198.tar.bz2
hercules-e4c1f576bf32e13a640670de3656765bfa966198.tar.xz
hercules-e4c1f576bf32e13a640670de3656765bfa966198.zip
* Made the party booking search pass results as array of pointers, rather than array of indexes, which require further lookup.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14514 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 7917d5b8b..8f7971b29 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10832,7 +10832,7 @@ void clif_parse_PartyBookingSearchReq(int fd, struct map_session_data* sd)
/*==========================================
* more_result: 0 - no more, 1 - more
*------------------------------------------*/
-void clif_PartyBookingSearchAck(int fd, unsigned long *index, int count, bool more_result)
+void clif_PartyBookingSearchAck(int fd, struct party_booking_ad_info** results, int count, bool more_result)
{
int i, j;
int size = sizeof(struct party_booking_ad_info); // structure size (48)
@@ -10840,11 +10840,10 @@ void clif_PartyBookingSearchAck(int fd, unsigned long *index, int count, bool mo
WFIFOHEAD(fd,size*count + 5);
WFIFOW(fd,0) = 0x805;
WFIFOW(fd,2) = size*count + 5;
- WFIFOB(fd,4) = (bool)more_result;
+ WFIFOB(fd,4) = more_result;
for(i=0; i<count; i++)
{
- pb_ad = party_booking_getdata(index[i]);
- if(pb_ad == NULL) return;
+ pb_ad = results[i];
WFIFOL(fd,i*size+5) = pb_ad->index;
memcpy(WFIFOP(fd,i*size+9),pb_ad->charname,NAME_LENGTH);
WFIFOL(fd,i*size+33) = pb_ad->starttime;