瀏覽代碼

Fixed crash

git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@240 54d463be-8e91-2dee-dedb-b68131a5f0ec
amber 20 年之前
父節點
當前提交
356b48e28c
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 3 1
      Changelog.txt
  2. 1 0
      src/map/map.c

+ 3 - 1
Changelog.txt

@@ -1,5 +1,7 @@
 Date	Added
-11/17   * Added skill_steal_type to battle_athena.conf for the new (but unconfirmed) 
+11/17   
+	* Fixed a crash in the afm reading/closing code [MouseJstr]
+	* Added skill_steal_type to battle_athena.conf for the new (but unconfirmed) 
           stealing formula [celest]
         * Skill updates: [celest]
           - Removed annoying skill fail messages from rogue's Snatcher

+ 1 - 0
src/map/map.c

@@ -1642,6 +1642,7 @@ int map_readallmap(void) {
                          }
                       }
 	    }
+	    if (afm_file != NULL) 
 		fclose(afm_file);
 	}