From 068ea0a4ba49bcd97011dc9f454fcc4cdf4560eb Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Tue, 16 May 2017 20:33:03 +0200 Subject: [PATCH] Fixed char saving after buyingstore transactions Fixes #2148 Thanks to @Encon21 --- src/map/buyingstore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/buyingstore.c b/src/map/buyingstore.c index 5ab696c764..154e0e30db 100644 --- a/src/map/buyingstore.c +++ b/src/map/buyingstore.c @@ -471,9 +471,9 @@ void buyingstore_trade(struct map_session_data* sd, uint32 account_id, unsigned clif_buyingstore_update_item(pl_sd, nameid, amount, sd->status.char_id, zeny); } - if( save_settings&CHARSAVE_BANK ) { - chrif_save(sd, CSAVE_NORMAL); - chrif_save(pl_sd, CSAVE_NORMAL); + if( save_settings&CHARSAVE_VENDING ) { + chrif_save(sd, CSAVE_NORMAL|CSAVE_INVENTORY); + chrif_save(pl_sd, CSAVE_NORMAL|CSAVE_INVENTORY); } // check whether or not there is still something to buy