Explorar o código

Fixed a glitch where the TXT charserver would not unlock castle.txt after creating it, thus preventing it from being saved correctly.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11941 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage %!s(int64=17) %!d(string=hai) anos
pai
achega
11f67e9099
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/char/int_guild.c

+ 2 - 2
src/char/int_guild.c

@@ -456,6 +456,8 @@ int inter_guild_init()
 		c++;
 	}
 
+	fclose(fp);
+
 	if (!c) {
 		ShowStatus(" %s - making Default Data...\n", castle_txt);
 		//デフォルトデータを作成
@@ -472,8 +474,6 @@ int inter_guild_init()
 		return 0;
 	}
 
-	fclose(fp);
-
 	return 0;
 }