From 8449eab503d4795689002794aa88d6a3f45128de Mon Sep 17 00:00:00 2001 From: Aure7138 <100095051+Aure7138@users.noreply.github.com> Date: Wed, 15 Feb 2023 04:28:05 +0800 Subject: [PATCH] fix(protection): invalid parachute (#989) fixes #916 --- .../protections/serialize_take_off_ped_variation_task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/protections/serialize_take_off_ped_variation_task.cpp b/src/hooks/protections/serialize_take_off_ped_variation_task.cpp index ba67371c..7c376aa0 100644 --- a/src/hooks/protections/serialize_take_off_ped_variation_task.cpp +++ b/src/hooks/protections/serialize_take_off_ped_variation_task.cpp @@ -8,7 +8,7 @@ namespace big { g_hooking->get_original()(info, serializer); if (info->m_prop_hash != 0 && - info->m_variation_component == 9 && + info->m_variation_component == 5 && info->m_prop_hash != RAGE_JOAAT("p_parachute_s") ) { @@ -16,4 +16,4 @@ namespace big info->m_prop_hash = 0; } } -} \ No newline at end of file +}