瀏覽代碼

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);