diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/char_sql/int_auction.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/char_sql/int_auction.c b/src/char_sql/int_auction.c index ebfce7b6f..a1476cb4c 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); |