From 73e374da5b552152301b41870e3321ed962a7b8f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 6 Sep 2021 07:07:27 +0000 Subject: [PATCH] 1 --- server/gameserver/killmgr.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/gameserver/killmgr.cc b/server/gameserver/killmgr.cc index 8c11b64..e8ff812 100644 --- a/server/gameserver/killmgr.cc +++ b/server/gameserver/killmgr.cc @@ -185,6 +185,8 @@ void KillMgr::BoradcastRollMsg(Human* dead_hum, int killer_team_id, std::shared_ptr pb_msg) { + KillInfo* info_copy = new KillInfo(); + *info_copy = *info; std::shared_ptr* pb_msg_copy = new std::shared_ptr; *pb_msg_copy = pb_msg; dead_hum->room->xtimer.AddDeadLineTimerAndAttach @@ -192,7 +194,8 @@ void KillMgr::BoradcastRollMsg(Human* dead_hum, 0, a8::XParams() .SetSender(dead_hum) - .SetParam1(pb_msg_copy) + .SetParam1(info_copy) + .SetParam2(pb_msg_copy) .SetParam3(killer_team_id), [] (const a8::XParams& param) {