summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-17 21:44:45 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-17 21:44:45 +0000
commit3131f9c9be6c208b6ce4401fbe76e0bf573620f7 (patch)
tree505766ac0d0ea6b20f3fb97e65bbfc78bd977265 /src/map/clif.c
parent6b80653ac8fd0be82cb0b7bcff7bd6d4a8f3d529 (diff)
downloadhercules-3131f9c9be6c208b6ce4401fbe76e0bf573620f7.tar.gz
hercules-3131f9c9be6c208b6ce4401fbe76e0bf573620f7.tar.bz2
hercules-3131f9c9be6c208b6ce4401fbe76e0bf573620f7.tar.xz
hercules-3131f9c9be6c208b6ce4401fbe76e0bf573620f7.zip
- A little check that I don't know how could anyone have forgotten to do.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10283 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-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)