Преглед изворни кода

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 пре 17 година
родитељ
комит
11f67e9099
1 измењених фајлова са 2 додато и 2 уклоњено
  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;
 }