From 19d620575a549897ac6c8478cd1082564d251712 Mon Sep 17 00:00:00 2001 From: Cydh Ramdh Date: Sun, 9 Oct 2016 08:29:16 +0700 Subject: [PATCH] Fixed #1575, cart cannot be changed. Signed-off-by: Cydh Ramdh --- src/map/pc.c | 7 +------ src/map/status.c | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/map/pc.c b/src/map/pc.c index 50af3e736b..28c76a4fd1 100755 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -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; } diff --git a/src/map/status.c b/src/map/status.c index a1e2bf33c6..e493e3e3eb 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -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: