mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 15:17:23 +08:00
feat(ReplayInterface): Yield script even on invalid objects
This commit is contained in:
parent
838da48400
commit
192e5aaee7
@ -22,7 +22,12 @@ namespace big
|
|||||||
for (int i = 0; i < max_obj; i++)
|
for (int i = 0; i < max_obj; i++)
|
||||||
{
|
{
|
||||||
rage::CObject* obj = object_interface->get_object(i);
|
rage::CObject* obj = object_interface->get_object(i);
|
||||||
if (obj == nullptr) continue;
|
if (obj == nullptr)
|
||||||
|
{
|
||||||
|
script::get_current()->yield();
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Object ent = g_pointers->m_ptr_to_handle(obj);
|
Object ent = g_pointers->m_ptr_to_handle(obj);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user