Przeglądaj źródła

Fixed char saving after buyingstore transactions

Fixes #2148
Thanks to @Encon21
Lemongrass3110 8 lat temu
rodzic
commit
068ea0a4ba
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/map/buyingstore.c

+ 3 - 3
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