From 947749cdee95f1dc9b5f251487dcd6929424f161 Mon Sep 17 00:00:00 2001 From: Xottab-DUTY Date: Fri, 20 Dec 2024 08:35:01 +0500 Subject: [PATCH] Don't notify about missing function objects/functors This was correct in vanilla, but in our case it's totally normal to miss some functors and there's no need to nag about this in the log. This also fixes FPS drop in Mixed configuration after #1751 merge due to BIG amount of logging about missing functors --- src/xrScriptEngine/script_engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrScriptEngine/script_engine.cpp b/src/xrScriptEngine/script_engine.cpp index efd51f1494a..fdd90fc82d5 100644 --- a/src/xrScriptEngine/script_engine.cpp +++ b/src/xrScriptEngine/script_engine.cpp @@ -1125,11 +1125,11 @@ bool CScriptEngine::function_object(LPCSTR function_to_call, luabind::object& ob { pstr file_name = strchr(name_space, '.'); if (!file_name) - process_file(name_space); + process_file_if_exists(name_space, false); else { *file_name = 0; - process_file(name_space); + process_file_if_exists(name_space, false); *file_name = '.'; } }