Skip to content

Commit

Permalink
Fix missing return in CScriptCallbackEx<void>::operator().
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 24, 2015
1 parent 596e2b9 commit 56f85cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/xrGame/script_callback_ex.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ void CScriptCallbackEx<void>::operator()(Args &&...args) const
VERIFY(m_object.is_valid());
luabind::call_function<void>(m_functor, m_object, std::forward<Args>(args)...);
}
luabind::call_function<void>(m_functor, std::forward<Args>(args)...);
else
luabind::call_function<void>(m_functor, std::forward<Args>(args)...);
}
}
process_error catch(std::exception &)
Expand Down Expand Up @@ -212,7 +213,8 @@ void CScriptCallbackEx<void>::operator()(Args &&...args)
VERIFY(m_object.is_valid());
luabind::call_function<void>(m_functor, m_object, std::forward<Args>(args)...);
}
luabind::call_function<void>(m_functor, std::forward<Args>(args)...);
else
luabind::call_function<void>(m_functor, std::forward<Args>(args)...);
}
}
process_error catch (std::exception &)
Expand Down

0 comments on commit 56f85cc

Please sign in to comment.