diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-05-29 11:46:36 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-05-29 11:46:36 +0000 |
commit | 6c5c324946c1e289de9521bff718f26e47b47362 (patch) | |
tree | 29f21aa82df3734c9c2a592908d241c296dfdba3 /src/char_sql | |
parent | 8135736d361a1418b0a8731c1c219b5beb15fdfb (diff) | |
download | hercules-6c5c324946c1e289de9521bff718f26e47b47362.tar.gz hercules-6c5c324946c1e289de9521bff718f26e47b47362.tar.bz2 hercules-6c5c324946c1e289de9521bff718f26e47b47362.tar.xz hercules-6c5c324946c1e289de9521bff718f26e47b47362.zip |
- Fixed bug report 1436 (Auction)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12742 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-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); |