Browse Source

* Corrected compiler warning and error made from r12959 and r12953, respectively. [SketchyPhoenix]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12954 54d463be-8e91-2dee-dedb-b68131a5f0ec
sketchyphoenix 17 năm trước cách đây
mục cha
commit
da66cd1d32
3 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 1 0
      Changelog-Trunk.txt
  2. 1 0
      src/map/pet.c
  3. 1 1
      src/map/status.c

+ 1 - 0
Changelog-Trunk.txt

@@ -5,6 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2008/07/14
 	* Made homunculi have doubled regen rates (they regen twice as fast) defined on battle configs. [Brainstorm]
+	* Corrected compiler warning and error made from r12959 and r12953, respectively.
 
 2008/07/13
 	* Modified storage data loading (bugreport:1425) [ultramage]

+ 1 - 0
src/map/pet.c

@@ -26,6 +26,7 @@
 #include "skill.h"
 #include "unit.h"
 #include "atcommand.h" // msg_txt()
+#include "log.h"
 
 #include <stdio.h>
 #include <stdlib.h>

+ 1 - 1
src/map/status.c

@@ -7288,7 +7288,7 @@ static int status_natural_heal(struct block_list* bl, va_list args)
 		regen->tick.sp += natural_heal_diff_tick*(regen->rate.sp+bonus);
 
 		// Homun HP regen fix (they should regen as if they were sitting (twice as fast)
-		if(bl->type==BL_HOM) regen->tick.p *=2;
+		if(bl->type==BL_HOM) regen->tick.sp *=2;
 		
 		if(regen->tick.sp >= (unsigned int)battle_config.natural_healsp_interval)
 		{