From edcd7e6d28059a05da7b528ce9f85b767dff15f4 Mon Sep 17 00:00:00 2001 From: zephyrus Date: Thu, 29 May 2008 11:46:36 +0000 Subject: [PATCH] - Fixed bug report 1436 (Auction) git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12742 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char_sql/int_auction.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/char_sql/int_auction.c b/src/char_sql/int_auction.c index ebfce7b6f2..a1476cb4cc 100644 --- a/src/char_sql/int_auction.c +++ b/src/char_sql/int_auction.c @@ -276,11 +276,17 @@ static void mapif_parse_Auction_requestlist(int fd) continue; i++; - if( i > 5 ) { pages++; i = 0; } - if( page != pages ) continue; + if( i > 5 ) + { // Counting Pages of Total Results (5 Results per Page) + pages++; + i = 1; // First Result of This Page + } + + if( page != pages ) + continue; // This is not the requested Page memcpy(WBUFP(buf, j * len), auction, len); - j++; + j++; // Found Results } iter->destroy(iter);