File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ void CScriptCallbackEx<void>::operator()(Args &&...args) const
182182 VERIFY (m_object.is_valid ());
183183 luabind::call_function<void >(m_functor, m_object, std::forward<Args>(args)...);
184184 }
185- luabind::call_function<void >(m_functor, std::forward<Args>(args)...);
185+ else
186+ luabind::call_function<void >(m_functor, std::forward<Args>(args)...);
186187 }
187188 }
188189 process_error catch (std::exception &)
@@ -212,7 +213,8 @@ void CScriptCallbackEx<void>::operator()(Args &&...args)
212213 VERIFY (m_object.is_valid ());
213214 luabind::call_function<void >(m_functor, m_object, std::forward<Args>(args)...);
214215 }
215- luabind::call_function<void >(m_functor, std::forward<Args>(args)...);
216+ else
217+ luabind::call_function<void >(m_functor, std::forward<Args>(args)...);
216218 }
217219 }
218220 process_error catch (std::exception &)
You can’t perform that action at this time.
0 commit comments