fix a crash with spectator aimbot

This commit is contained in:
BenCat07 2020-10-18 16:14:20 +02:00 committed by TotallyNotElite
parent 23436c0778
commit f401dec044

View File

@ -237,11 +237,11 @@ static void CreateMove()
slow_aim = *normal_slow_aim; slow_aim = *normal_slow_aim;
fov = *normal_fov; fov = *normal_fov;
spectatorUpdate();
if (CE_BAD(LOCAL_E) || !LOCAL_E->m_bAlivePlayer() || CE_BAD(LOCAL_W)) if (CE_BAD(LOCAL_E) || !LOCAL_E->m_bAlivePlayer() || CE_BAD(LOCAL_W))
enable = false; enable = false;
spectatorUpdate();
if (!enable) if (!enable)
{ {
target_last = nullptr; target_last = nullptr;