summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-09-06 12:07:03 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-09-06 12:07:03 -0700
commit0cb4ed00675361d02d33a1ea73f6c0afcb68fca7 (patch)
treea181339b27eb02df1b5db650170a3c132df54df5 /src/map/pc.cpp
parent967cf68ff9e58a281acdc61f6721990f1905882d (diff)
downloadtmwa-0cb4ed00675361d02d33a1ea73f6c0afcb68fca7.tar.gz
tmwa-0cb4ed00675361d02d33a1ea73f6c0afcb68fca7.tar.bz2
tmwa-0cb4ed00675361d02d33a1ea73f6c0afcb68fca7.tar.xz
tmwa-0cb4ed00675361d02d33a1ea73f6c0afcb68fca7.zip
Fix scissors bug
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index e34f765..7b0af59 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -2260,10 +2260,11 @@ int pc_useitem(dumb_ptr<map_session_data> sd, int n)
return 1;
}
- run_script(ScriptPointer(sd->inventory_data[n]->use_script.get(), 0), sd->bl_id, 0);
-
+ const ScriptBuffer *script = sd->inventory_data[n]->use_script.get();
clif_useitemack(sd, n, amount - 1, 1);
pc_delitem(sd, n, 1, 1);
+
+ run_script(ScriptPointer(script, 0), sd->bl_id, 0);
}
return 0;