This commit is contained in:
aozhiwei 2021-09-06 07:07:27 +00:00
parent 854d97d497
commit 73e374da5b

View File

@ -185,6 +185,8 @@ void KillMgr::BoradcastRollMsg(Human* dead_hum,
int killer_team_id,
std::shared_ptr<cs::SMRollMsg> pb_msg)
{
KillInfo* info_copy = new KillInfo();
*info_copy = *info;
std::shared_ptr<cs::SMRollMsg>* pb_msg_copy = new std::shared_ptr<cs::SMRollMsg>;
*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)
{