Skip to content

Commit 56f85cc

Browse files
author
nitrocaster
committed
Fix missing return in CScriptCallbackEx<void>::operator().
1 parent 596e2b9 commit 56f85cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/xrGame/script_callback_ex.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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 &)

0 commit comments

Comments
 (0)