Procházet zdrojové kódy

The "delete_timer error/no such timer" report will now print the related function

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8586 54d463be-8e91-2dee-dedb-b68131a5f0ec
toms před 18 roky
rodič
revize
a2ce0be45b
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/common/timer.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/09/01
+	* The "delete_timer error/no such timer" report will now print the related function [Toms]
 	* The Clearing unused stack report will now print the related NPC [Toms]
 	* The duplicate npc report will now print the related file name [Toms]
 	* Added config setting "partial_name_scan", which specifies whether @ given

+ 1 - 1
src/common/timer.c

@@ -263,7 +263,7 @@ int add_timer_interval(unsigned int tick, int (*func)(int,unsigned int,int,int),
 int delete_timer(int id, int (*func)(int,unsigned int,int,int))
 {
 	if (id <= 0 || id >= timer_data_num) {
-		ShowError("delete_timer error : no such timer %d\n", id);
+		ShowError("delete_timer error : no such timer %d (%08x(%s))\n", id, (int)func, search_timer_func_list(func));
 		return -1;
 	}
 	if (timer_data[id].func != func) {