mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-10 11:53:07 +08:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user