summaryrefslogtreecommitdiff
path: root/src/map/searchstore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/searchstore.c')
-rw-r--r--src/map/searchstore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/searchstore.c b/src/map/searchstore.c
index 7e1ee3e84..a9e82f847 100644
--- a/src/map/searchstore.c
+++ b/src/map/searchstore.c
@@ -150,7 +150,9 @@ void searchstore_query(struct map_session_data* sd, unsigned char type, unsigned
}
if( max_price < min_price ) {
- swap(min_price, max_price);
+ __asm xor min_price, max_price
+ __asm xor max_price, min_price
+ __asm xor min_price, max_price
}
sd->searchstore.uses--;