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