Fixed Player ESP potentially crashing on invalid models. (#2431)

* Check for and handle non-normal player models when doing ESP to prevent crashes.

* Added sanity checks to the non-MP model scenario.
This commit is contained in:
gir489
2023-11-19 16:45:43 -05:00
committed by GitHub
parent 99af31cfa0
commit 0b0bde5958
4 changed files with 19 additions and 5 deletions
+1 -1
View File
@@ -1764,7 +1764,7 @@ namespace big
"48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 57 48 83 EC 60 48 8B 01 41 8B E8 48 8B F2",
[](memory::handle ptr)
{
g_pointers->m_gta.m_get_ped_pone = ptr.as<functions::get_ped_pone>();
g_pointers->m_gta.m_get_ped_bone = ptr.as<functions::get_ped_bone>();
}
}
>(); // don't leave a trailing comma at the end