Fixed Cart Weight calculation (fixes #1938)

* Resolves Cart weight not getting recalculated when using atcommand resetskill.
Thanks to @Hactus and @Tokeiburu!
This commit is contained in:
aleos89 2017-02-03 10:17:21 -05:00
parent ae182ef6a8
commit 52f9bf63af

View File

@ -8767,8 +8767,10 @@ bool pc_setcart(struct map_session_data *sd,int type) {
clif_clearcart(sd->fd);
break;
default:/* everything else is an allowed ID so we can move on */
if( !sd->sc.data[SC_PUSH_CART] ) /* first time, so fill cart data */
if( !sd->sc.data[SC_PUSH_CART] ) { /* first time, so fill cart data */
clif_cartlist(sd);
status_calc_cart_weight(sd, CALCWT_ITEM|CALCWT_MAXBONUS|CALCWT_CARTSTATE);
}
clif_updatestatus(sd, SP_CARTINFO);
sc_start(&sd->bl, &sd->bl, SC_PUSH_CART, 100, type, 0);
break;