Parcourir la source

Fixed a badly defined skill range in homunculus loading code (followup to r11731)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11789 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage il y a 17 ans
Parent
commit
a7163dc913
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/char/int_homun.c

+ 2 - 2
src/char/int_homun.c

@@ -97,13 +97,13 @@ int inter_homun_fromstr(char *str,struct s_homunculus *p)
 		if (sscanf(str+next, "%d,%d,%n", &tmp_int[0], &tmp_int[1], &len) != 2)
 			return 2;
 
-		if (tmp_int[0] > HM_SKILLBASE && tmp_int[0] < HM_SKILLBASE+MAX_HOMUNSKILL)
+		if (tmp_int[0] >= HM_SKILLBASE && tmp_int[0] < HM_SKILLBASE+MAX_HOMUNSKILL)
 		{
 			i = tmp_int[0] - HM_SKILLBASE;
 			p->hskill[i].id = tmp_int[0];
 			p->hskill[i].lv = tmp_int[1];
 		} else
-			ShowError("Read Homun: Unsupported Skill ID %d for homunculus (Homun ID=%d\n", tmp_int[0], p->hom_id);
+			ShowError("Read Homun: Unsupported Skill ID %d for homunculus (Homun ID=%d\n)", tmp_int[0], p->hom_id);
 		next += len;
 		if (str[next] == ' ')
 			next++;