Explorar o código

Bugfixed, bugreport:9085. Wrong var in SP_ADD_ITEMGROUP_HEAL_RATE statement.

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
Cydh Ramdh %!s(int64=11) %!d(string=hai) anos
pai
achega
a051af4cf1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/map/pc.c

+ 1 - 1
src/map/pc.c

@@ -3388,7 +3388,7 @@ void pc_bonus2(struct map_session_data *sd,int type,int type2,int val)
 		break;
 	case SP_ADD_ITEMGROUP_HEAL_RATE:
 		{
-			if (!type2 || !itemdb_group_exists(type)) {
+			if (!type2 || !itemdb_group_exists(type2)) {
 				ShowError("pc_bonus2: SP_ADD_ITEMGROUP_HEAL_RATE Invalid item group with id %d\n", type2);
 				break;
 			}