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

- Fixed a small typo/logic-error in pet_ai_sub_hard

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6424 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex пре 19 година
родитељ
комит
0e382cb337
2 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 1
      src/map/pet.c
  2. 0 1
      src/map/skill.c

+ 1 - 1
src/map/pet.c

@@ -958,7 +958,7 @@ static int pet_ai_sub_hard(struct pet_data *pd,unsigned int tick)
 		pd->speed = (sd->speed>>1);
 		if(pd->speed <= 0)
 			pd->speed = 1;
-		if (!unit_walktobl(&pd->bl, &sd->bl, 3, 0));
+		if (!unit_walktobl(&pd->bl, &sd->bl, 3, 0))
 			pet_randomwalk(pd,tick);
 		return 0;
 	}

+ 0 - 1
src/map/skill.c

@@ -9490,7 +9490,6 @@ int skill_delunitgroup(struct block_list *src, struct skill_unit_group *group)
 				skill_delunit(&group->unit[i]);
 	}
 	if(group->valstr!=NULL){
-		//Supposedly Free remembers the size of the original Calloc/Malloc, so this should be safe [Skotlex]
 		aFree(group->valstr);
 		group->valstr=NULL;
 	}