From 942dfed655b9e59a20e93e28bb41fe779516bc86 Mon Sep 17 00:00:00 2001
From: Jared Adams <jaxad0127@gmail.com>
Date: Wed, 11 Mar 2009 11:21:27 -0600
Subject: FIx a bug dealing with storage and scripting

Also remove some depug printing statements that were accidentally
commited
---
 src/map/clif.c    | 2 ++
 src/map/script.c  | 1 +
 src/map/storage.c | 2 --
 3 files changed, 3 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/map/clif.c b/src/map/clif.c
index dbee8b8..61377d2 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7682,6 +7682,8 @@ void clif_parse_CloseKafra(int fd, struct map_session_data *sd) {
 		storage_guild_storageclose(sd);
 	else
 		storage_storageclose(sd);
+
+	map_scriptcont(sd, sd->npc_id);
 }
 
 /*==========================================
diff --git a/src/map/script.c b/src/map/script.c
index ae7bd8f..a51f65f 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -3522,6 +3522,7 @@ int buildin_gettimestr(struct script_state *st)
  */
 int buildin_openstorage(struct script_state *st)
 {
+	st->state=STOP;
 	storage_storageopen(script_rid2sd(st));
 	return 0;
 }
diff --git a/src/map/storage.c b/src/map/storage.c
index 3edd7b8..0158f38 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -140,7 +140,6 @@ int storage_additem(struct map_session_data *sd,struct storage *stor,struct item
 
 	i=MAX_STORAGE;
 	if(!itemdb_isequip2(data)){
-		printf("A");
 		// �����i�ł͂Ȃ��̂ŁA�����L�i�Ȃ���̂ݕω�������
 		for(i=0;i<MAX_STORAGE;i++){
 			if(stor->storage[i].nameid == item_data->nameid &&
@@ -155,7 +154,6 @@ int storage_additem(struct map_session_data *sd,struct storage *stor,struct item
 		}
 	}
 	if(i>=MAX_STORAGE){
-		printf("B");
 		// �����i�������L�i�������̂ŋ󂫗��֒lj�
 		for(i=0;i<MAX_STORAGE;i++){
 			if(stor->storage[i].nameid==0){
-- 
cgit v1.2.3-70-g09d2