fix(heist): Fixed the issue of loading repeatedly when starting a heist mission with other players. (#789)

This commit is contained in:
UnkEcho
2025-12-26 01:17:17 +08:00
committed by GitHub
parent 96c2d2e8dd
commit 1fca608743
@@ -13,7 +13,8 @@ namespace YimMenu::Hooks
eFreemodeState m_LastState; eFreemodeState m_LastState;
public: public:
FreemodeStateKick(Player player, void* array) FreemodeStateKick(Player player, void* array) :
m_Enabled(), m_LastState()
{ {
if (player.GetData().m_RunFreemodeStateKick && array == GSBD::Get()) if (player.GetData().m_RunFreemodeStateKick && array == GSBD::Get())
{ {