crash protection

This commit is contained in:
Mr-X-GTA 2024-12-12 15:48:48 +01:00
parent 4aeadef81d
commit 98cbad3a86

View File

@ -1539,6 +1539,11 @@ namespace big
case sync_node_id("CPedGameStateDataNode"):
{
const auto game_state_node = (CPedGameStateDataNode*)(node);
if (game_state_node->m_weapon_hash == "WEAPON_STRICKLER"_J)
{
notify::crash_blocked(sender, "invalid weapon");
return true;
}
if (game_state_node->m_on_mount)
{
notify::crash_blocked(sender, "mount flag");