CGrenadeLauncher: Remove stray reference qualifier on a copy operation

Same behavior, but more explicit about a copy needing to occur here.
This commit is contained in:
Lioncash 2020-04-01 23:59:02 -04:00
parent b95d84a570
commit 6017e99aac
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ CGrenadeLauncher::CGrenadeLauncher(TUniqueId uid, std::string_view name, const C
}
zeus::CVector3f CGrenadeLauncher::GrenadeTarget(const CStateManager& mgr) {
const zeus::CVector3f& aim = mgr.GetPlayer().GetAimPosition(mgr, 1.f);
const zeus::CVector3f aim = mgr.GetPlayer().GetAimPosition(mgr, 1.f);
if (mgr.GetPlayer().GetMorphballTransitionState() == CPlayer::EPlayerMorphBallState::Unmorphed) {
return aim - zeus::CVector3f{0.f, 0.f, 0.5f * mgr.GetPlayer().GetEyeHeight()};
}