summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-10 15:53:39 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-10 15:53:39 -0600
commitbdc081d262eeb2adb3f3352026be431b846e48b1 (patch)
treed02c78e6ddbf014c8f6cc22887f79092834eec90 /src/map/clif.c
parent2d8ff1ae3793baa259b907b4a4b86230a725153b (diff)
downloadtmwa-bdc081d262eeb2adb3f3352026be431b846e48b1.tar.gz
tmwa-bdc081d262eeb2adb3f3352026be431b846e48b1.tar.bz2
tmwa-bdc081d262eeb2adb3f3352026be431b846e48b1.tar.xz
tmwa-bdc081d262eeb2adb3f3352026be431b846e48b1.zip
Apply sanity checks from Wombat
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 03bf1ab..dbee8b8 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -3065,10 +3065,10 @@ int clif_storageitemadded(struct map_session_data *sd,struct storage *stor,int i
WFIFOW(fd,0) =0xf4; // Storage item added
WFIFOW(fd,2) =index+1; // index
WFIFOL(fd,4) =amount; // amount
- if((view = itemdb_viewid(stor->storage[index].nameid)) > 0)
+/* if((view = itemdb_viewid(stor->storage[index].nameid)) > 0)
WFIFOW(fd,8) =view;
- else
- WFIFOW(fd,8) =stor->storage[index].nameid; // id
+ else*/
+ WFIFOW(fd,8) =stor->storage[index].nameid;
WFIFOB(fd,10)=stor->storage[index].identify; //identify flag
if(stor->storage[index].broken==1)
WFIFOB(fd,11)=1; // is weapon broken [Valaris]