From f88b493680e0242df66a63022ac8c77232cb5f21 Mon Sep 17 00:00:00 2001 From: Yimura Date: Thu, 16 Dec 2021 20:16:40 +0100 Subject: [PATCH] feat(ReplayInterface): Yield script even on invalid objects --- .../src/backend/looped/protections/replay_interface.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BigBaseV2/src/backend/looped/protections/replay_interface.cpp b/BigBaseV2/src/backend/looped/protections/replay_interface.cpp index 29605558..857e69ac 100644 --- a/BigBaseV2/src/backend/looped/protections/replay_interface.cpp +++ b/BigBaseV2/src/backend/looped/protections/replay_interface.cpp @@ -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);