From 1d0e18a186f67844ccd873eabb56ebdaa3f47f11 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 25 May 2013 13:49:50 -0700 Subject: 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 ... --- src/map/trade.hpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/map/trade.hpp') 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 sd, int target_id); +void trade_tradeack(dumb_ptr sd, int type); +void trade_tradeadditem(dumb_ptr sd, int index, int amount); +void trade_tradeok(dumb_ptr sd); +void trade_tradecancel(dumb_ptr sd); +void trade_tradecommit(dumb_ptr sd); +void trade_verifyzeny(dumb_ptr sd); #endif // TRADE_HPP -- cgit v1.2.3-70-g09d2