summaryrefslogtreecommitdiff
path: root/src/map/trade.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-13 13:54:56 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-13 13:54:56 +0000
commit7fae29dea80ba1c6b005b195dc65e5e4df73ae21 (patch)
tree29e1165d361f4d5b85215c741e164cdd327bd369 /src/map/trade.c
parent469d68189f96c332eba0b90cd50f851ae751d75d (diff)
downloadhercules-7fae29dea80ba1c6b005b195dc65e5e4df73ae21.tar.gz
hercules-7fae29dea80ba1c6b005b195dc65e5e4df73ae21.tar.bz2
hercules-7fae29dea80ba1c6b005b195dc65e5e4df73ae21.tar.xz
hercules-7fae29dea80ba1c6b005b195dc65e5e4df73ae21.zip
* Added 'Throw Tomahawk'
* Added some new monster skills - still not complete. * Adjusted Palm Strike, Tiger Fist and Chain Crush * Removed redundant 'sg_count' * Save both persons' data after trading * Removed 'type' paramater from pc_unequipitem * Moved unequip checking code from clif.c to pc.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@554 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/trade.c')
-rw-r--r--src/map/trade.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index ddb45a73b..33b061a46 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -10,6 +10,7 @@
#include "battle.h"
#include "nullpo.h"
#include "log.h"
+#include "chrif.h"
/*==========================================
* 取引要請を相手に送る
@@ -288,6 +289,9 @@ void trade_tradecommit(struct map_session_data *sd)
target_sd->trade_partner=0;
clif_tradecompleted(sd,0);
clif_tradecompleted(target_sd,0);
+ // save both player to avoid crash: they always have no advantage/disadvantage between the 2 players [Yor]
+ chrif_save(sd); // do pc_makesavestatus and save storage too
+ chrif_save(target_sd); // do pc_makesavestatus and save storage too
}
}
}