summaryrefslogtreecommitdiff
path: root/src/char/int_storage.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-05-25 22:40:30 +0000
committerFate <fate-tmw@googlemail.com>2009-05-25 22:40:30 +0000
commitabb1b2ad079878b0750054982c95193200dd7bd5 (patch)
tree70ed99df5a07b0d478e5a0a038918371064a2a41 /src/char/int_storage.c
parent208f15dd1bf61cb96df4e85b87e3d60eea55388e (diff)
downloadtmwa-abb1b2ad079878b0750054982c95193200dd7bd5.tar.gz
tmwa-abb1b2ad079878b0750054982c95193200dd7bd5.tar.bz2
tmwa-abb1b2ad079878b0750054982c95193200dd7bd5.tar.xz
tmwa-abb1b2ad079878b0750054982c95193200dd7bd5.zip
Made itemfrob an ladmin command that can be used while running the server
Diffstat (limited to 'src/char/int_storage.c')
-rw-r--r--src/char/int_storage.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/char/int_storage.c b/src/char/int_storage.c
index b84b586..0774370 100644
--- a/src/char/int_storage.c
+++ b/src/char/int_storage.c
@@ -190,10 +190,17 @@ int guild_storage_fromstr(char *str,struct guild_storage *p)
}
// アカウントから倉庫データインデックスを得る(新規倉庫追加可能)
-struct storage *account2storage(int account_id)
+struct storage *account2maybe_storage(int account_id)
{
struct storage *s;
s=numdb_search(storage_db,account_id);
+ return s;
+}
+
+struct storage *account2storage(int account_id)
+{
+ struct storage *s = account2maybe_storage(account_id);
+
if(s == NULL) {
s = calloc(sizeof(struct storage), 1);
if(s==NULL){