feat(ReplayInterface): Yield script even on invalid objects

This commit is contained in:
Yimura 2021-12-16 20:16:40 +01:00
parent 4c3c3104ad
commit f88b493680
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -22,7 +22,12 @@ namespace big
for (int i = 0; i < max_obj; 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);