Pārlūkot izejas kodu

Typo on a683e005d73f37b57e625046168e9f3282131a81

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
Cydh Ramdh 10 gadi atpakaļ
vecāks
revīzija
4d97e9adf2
2 mainītis faili ar 8 papildinājumiem un 7 dzēšanām
  1. 1 1
      src/char/int_storage.c
  2. 7 6
      src/common/mmo.h

+ 1 - 1
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) )

+ 7 - 6
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 {