This commit is contained in:
aozhiwei 2023-03-06 11:44:33 +08:00
parent fa51c1bb7e
commit b6e4d1610c

View File

@ -979,7 +979,7 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
use_skill = false; use_skill = false;
} }
if (msg.has_throw_bomb()) { if (msg.has_throw_bomb()) {
throw_bomb = std::shared_ptr<cs::MFThrow>(); throw_bomb = std::make_shared<cs::MFThrow>();
*(throw_bomb.get()) = msg.throw_bomb(); *(throw_bomb.get()) = msg.throw_bomb();
} else { } else {
throw_bomb.reset(); throw_bomb.reset();