소스 검색

Fixed a potential crash with script command setunitdata (fixes #1024)
* Corrected the mercenary client refresh function using monster data rather than mercenary data.
Thanks to @Racaae and @julia40124009!

aleos89 9 년 전
부모
커밋
0d5e491b4e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/map/script.c

+ 2 - 2
src/map/script.c

@@ -17468,8 +17468,8 @@ BUILDIN_FUNC(setunitdata)
 			clif_send_petstatus(pd->master);
 			break;
 		case BL_MER:
-			clif_mercenary_info(map_charid2sd(md->master_id));
-			clif_mercenary_skillblock(map_charid2sd(md->master_id));
+			clif_mercenary_info(map_charid2sd(mc->master_id));
+			clif_mercenary_skillblock(map_charid2sd(mc->master_id));
 			break;
 		case BL_ELEM:
 			clif_elemental_info(ed->master);