From 4d97e9adf289b68cabcf697f7748573e68b95790 Mon Sep 17 00:00:00 2001 From: Cydh Ramdh Date: Thu, 15 Jan 2015 10:29:08 +0700 Subject: [PATCH] Typo on a683e005d73f37b57e625046168e9f3282131a81 Signed-off-by: Cydh Ramdh --- src/char/int_storage.c | 2 +- src/common/mmo.h | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/char/int_storage.c b/src/char/int_storage.c index 09bf600190..11ad07263f 100644 --- a/src/char/int_storage.c +++ b/src/char/int_storage.c @@ -379,7 +379,7 @@ int mapif_parse_itembound_retrieve(int fd) if (j) { StringBuf buf2; StringBuf_Init(&buf2); - StringBuf_Printf(&buf2, "UPDATE `%s` SET %s WHERE `char_id`='%d", schema_config.char_db, StringBuf_Value(&buf), char_id); + StringBuf_Printf(&buf2, "UPDATE `%s` SET %s WHERE `char_id`='%d'", schema_config.char_db, StringBuf_Value(&buf), char_id); if( SQL_ERROR == SqlStmt_PrepareStr(stmt, StringBuf_Value(&buf)) || SQL_ERROR == SqlStmt_Execute(stmt) ) diff --git a/src/common/mmo.h b/src/common/mmo.h index 393929f26a..375e86dd5a 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -277,13 +277,14 @@ struct storage_data { struct item items[MAX_STORAGE]; }; +/// Guild storgae struct struct guild_storage { - bool dirty; - int guild_id; - short storage_amount; - struct item items[MAX_GUILD_STORAGE]; - bool locked; - int opened; /// Holds the char_id that open the storage + bool dirty; ///< Dirty status, need to be saved + int guild_id; ///< Guild ID + short storage_amount; ///< Amount of item on storage + struct item items[MAX_GUILD_STORAGE]; ///< Item entries + bool locked; ///< If locked, can't use storage when item bound retrieval + uint32 opened; ///< Holds the char_id that open the storage }; struct s_pet {