summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-05-18 18:21:08 -0300
committerMatheus Macabu <mkbu95@gmail.com>2013-05-18 18:21:08 -0300
commit6d527e5d6a76fbf5f0a6440d74971977b5a37e03 (patch)
tree55da5f1209ab77942a2ee678b6c31fd480c349b1
parentfdf1d34fdc53bb28625669ead2b812f6dcb47337 (diff)
downloadhercules-6d527e5d6a76fbf5f0a6440d74971977b5a37e03.tar.gz
hercules-6d527e5d6a76fbf5f0a6440d74971977b5a37e03.tar.bz2
hercules-6d527e5d6a76fbf5f0a6440d74971977b5a37e03.tar.xz
hercules-6d527e5d6a76fbf5f0a6440d74971977b5a37e03.zip
This wasn't supposed to happen. God almighty damn.
Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
-rw-r--r--src/map/searchstore.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/searchstore.c b/src/map/searchstore.c
index a9e82f847..7e1ee3e84 100644
--- a/src/map/searchstore.c
+++ b/src/map/searchstore.c
@@ -150,9 +150,7 @@ void searchstore_query(struct map_session_data* sd, unsigned char type, unsigned
}
if( max_price < min_price ) {
- __asm xor min_price, max_price
- __asm xor max_price, min_price
- __asm xor min_price, max_price
+ swap(min_price, max_price);
}
sd->searchstore.uses--;