summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/clif.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index f66868b66..62ea6169c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9602,6 +9602,8 @@ void clif_parse_PutItemToCart(int fd,struct map_session_data *sd)
if (clif_trading(sd))
return;
+ if (!pc_iscarton(sd))
+ return;
pc_putitemtocart(sd,RFIFOW(fd,2)-2,RFIFOL(fd,4));
}
/*==========================================
@@ -9611,6 +9613,8 @@ void clif_parse_PutItemToCart(int fd,struct map_session_data *sd)
void clif_parse_GetItemFromCart(int fd,struct map_session_data *sd)
{
RFIFOHEAD(fd);
+ if (!pc_iscarton(sd))
+ return;
pc_getitemfromcart(sd,RFIFOW(fd,2)-2,RFIFOL(fd,4));
}
@@ -10250,7 +10254,8 @@ void clif_parse_MoveToKafraFromCart(int fd, struct map_session_data *sd) {
if(sd->vender_id)
return;
-
+ if (!pc_iscarton(sd))
+ return;
if (sd->state.storage_flag == 1)
storage_storageaddfromcart(sd, RFIFOW(fd,2) - 2, RFIFOL(fd,4));
else if (sd->state.storage_flag == 2)
@@ -10266,6 +10271,8 @@ void clif_parse_MoveFromKafraToCart(int fd, struct map_session_data *sd) {
if (sd->vender_id)
return;
+ if (!pc_iscarton(sd))
+ return;
if (sd->state.storage_flag == 1)
storage_storagegettocart(sd, RFIFOW(fd,2)-1, RFIFOL(fd,4));
else if (sd->state.storage_flag == 2)