fix uninitialized crosshair type

reproduce: give fireaxe; jointeam 1 and sb_takecontrol
This commit is contained in:
explorer 2025-01-10 20:00:36 +03:00
parent f819000cfe
commit d12933fe27

View File

@ -64,4 +64,8 @@ void Redirected_Draw_Crosshair()
}
Rotation_Angle = __builtin_remainderf(Rotation_Angle + (*(Global_Variables_Structure**)((unsigned __int32)Client_Module + 7096744))->Frame_Time * Interface_Storm_Speed.Integer, 360.f);
using Get_Display_Type = void*(__cdecl*)();
*(__int32*)((unsigned __int32)Get_Display_Type((unsigned __int32)Client_Module + 2930128)() + 400) = 0;
}