Przeglądaj źródła

Corrected guild storage saving (#2957)

* Fixes #2946.
* Resolves players being unable to transfer items when the character data is saved while a guild storage is open.
Thanks to @CodexRegius!
Aleos 7 lat temu
rodzic
commit
378322592e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/map/storage.cpp

+ 1 - 1
src/map/storage.cpp

@@ -908,7 +908,7 @@ bool storage_guild_storagesave(uint32 account_id, int guild_id, int flag)
 	struct s_storage *stor = guild2storage2(guild_id);
 
 	if (stor) {
-		if (flag) //Char quitting, close it.
+		if (flag&CSAVE_QUIT) //Char quitting, close it.
 			stor->status = false;
 
 		if (stor->dirty)