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 {