feat(ReplayInterface): Yield script even on invalid objects
This commit is contained in:
parent
4c3c3104ad
commit
f88b493680
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user