diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-15 11:44:28 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-15 11:44:28 -0700 |
commit | f2757bbfd049777f6fa9089bd33e38f80290c039 (patch) | |
tree | 50d3e138efb0c263cc9cae935a179645d19ce54d /src/map/trade.cpp | |
parent | 42631b502b3446d71cfe2745045436d9497ee0ed (diff) | |
download | tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.tar.gz tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.tar.bz2 tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.tar.xz tmwa-f2757bbfd049777f6fa9089bd33e38f80290c039.zip |
Split out the keys from character data to have better paging performance
Diffstat (limited to 'src/map/trade.cpp')
-rw-r--r-- | src/map/trade.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/trade.cpp b/src/map/trade.cpp index 7fc01ae..9626191 100644 --- a/src/map/trade.cpp +++ b/src/map/trade.cpp @@ -56,9 +56,9 @@ void trade_traderequest(dumb_ptr<map_session_data> sd, int target_id) } else if (sd != target_sd) { - target_sd->trade_partner = sd->status.account_id; - sd->trade_partner = target_sd->status.account_id; - clif_traderequest(target_sd, sd->status.name); + target_sd->trade_partner = sd->status_key.account_id; + sd->trade_partner = target_sd->status_key.account_id; + clif_traderequest(target_sd, sd->status_key.name); } } } @@ -326,7 +326,7 @@ void trade_tradecommit(dumb_ptr<map_session_data> sd) if ((target_sd = map_id2sd(sd->trade_partner)) != NULL) { MAP_LOG_PC(sd, " TRADECOMMIT WITH %d GIVE %d GET %d", - target_sd->status.char_id, sd->deal_zeny, + target_sd->status_key.char_id, sd->deal_zeny, target_sd->deal_zeny); if ((sd->deal_locked >= 1) && (target_sd->deal_locked >= 1)) { // both have pressed 'ok' |