Skip to content

Commit

Permalink
Fixed #1575, cart cannot be changed.
Browse files Browse the repository at this point in the history
Signed-off-by: Cydh Ramdh <cydh@pservero.com>
  • Loading branch information
cydh committed Oct 9, 2016
1 parent cd0b2b2 commit 19d6205
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/map/pc.c
Expand Up @@ -8785,12 +8785,7 @@ bool pc_setcart(struct map_session_data *sd,int type) {
if( !sd->sc.data[SC_PUSH_CART] ) /* first time, so fill cart data */
clif_cartlist(sd);
clif_updatestatus(sd, SP_CARTINFO);
sc_start(&sd->bl,&sd->bl, SC_PUSH_CART, 100, type, -1);
#if PACKETVER > 20120418
clif_efst_status_change(&sd->bl, sd->bl.id, AREA, SI_ON_PUSH_CART, 9999, type, 0, 0);
if( sd->sc.data[SC_PUSH_CART] )/* forcefully update */
sd->sc.data[SC_PUSH_CART]->val1 = type;
#endif
sc_start(&sd->bl, &sd->bl, SC_PUSH_CART, 100, type, 0);
break;
}

Expand Down
1 change: 1 addition & 0 deletions src/map/status.c
Expand Up @@ -8902,6 +8902,7 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty
case SC_REUSE_LIMIT_RECALL:
case SC_REUSE_LIMIT_ASPD_POTION:
return 0;
case SC_PUSH_CART:
case SC_COMBO:
case SC_DANCING:
case SC_DEVOTION:
Expand Down

0 comments on commit 19d6205

Please sign in to comment.