diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-05-25 13:49:50 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-05-25 13:49:50 -0700 |
commit | 1d0e18a186f67844ccd873eabb56ebdaa3f47f11 (patch) | |
tree | 94199c6dbcb6b4a86584c303f6e1e72073873f01 /src/map/trade.hpp | |
parent | 87218e07b2bc89593eae1cb4abe859cd1a7eaa0f (diff) | |
download | tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.gz tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.bz2 tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.xz tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.zip |
Switch block_list and subclasses to dumb_ptr
Now we're well-defined, since we're actually calling ctors and dtors.
Most of this code will not survive long ...
Diffstat (limited to 'src/map/trade.hpp')
-rw-r--r-- | src/map/trade.hpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/map/trade.hpp b/src/map/trade.hpp index 0edca9c..708e578 100644 --- a/src/map/trade.hpp +++ b/src/map/trade.hpp @@ -1,12 +1,14 @@ #ifndef TRADE_HPP #define TRADE_HPP -void trade_traderequest(struct map_session_data *sd, int target_id); -void trade_tradeack(struct map_session_data *sd, int type); -void trade_tradeadditem(struct map_session_data *sd, int index, int amount); -void trade_tradeok(struct map_session_data *sd); -void trade_tradecancel(struct map_session_data *sd); -void trade_tradecommit(struct map_session_data *sd); -void trade_verifyzeny(struct map_session_data *sd); +#include "map.hpp" + +void trade_traderequest(dumb_ptr<map_session_data> sd, int target_id); +void trade_tradeack(dumb_ptr<map_session_data> sd, int type); +void trade_tradeadditem(dumb_ptr<map_session_data> sd, int index, int amount); +void trade_tradeok(dumb_ptr<map_session_data> sd); +void trade_tradecancel(dumb_ptr<map_session_data> sd); +void trade_tradecommit(dumb_ptr<map_session_data> sd); +void trade_verifyzeny(dumb_ptr<map_session_data> sd); #endif // TRADE_HPP |