diff --git a/src/xrGame/script_callback_ex.h b/src/xrGame/script_callback_ex.h index aa93794fdce..d7dae255b55 100644 --- a/src/xrGame/script_callback_ex.h +++ b/src/xrGame/script_callback_ex.h @@ -182,7 +182,8 @@ void CScriptCallbackEx::operator()(Args &&...args) const VERIFY(m_object.is_valid()); luabind::call_function(m_functor, m_object, std::forward(args)...); } - luabind::call_function(m_functor, std::forward(args)...); + else + luabind::call_function(m_functor, std::forward(args)...); } } process_error catch(std::exception &) @@ -212,7 +213,8 @@ void CScriptCallbackEx::operator()(Args &&...args) VERIFY(m_object.is_valid()); luabind::call_function(m_functor, m_object, std::forward(args)...); } - luabind::call_function(m_functor, std::forward(args)...); + else + luabind::call_function(m_functor, std::forward(args)...); } } process_error catch (std::exception &)