Skip to content

Commit

Permalink
Don't notify about missing function objects/functors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Xottab-DUTY committed Dec 20, 2024
1 parent f15552d commit 947749c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xrScriptEngine/script_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '.';
}
}
Expand Down

0 comments on commit 947749c

Please sign in to comment.