Skip to content

Commit

Permalink
Fix: Correct the typo's for LuaFunctionData
Browse files Browse the repository at this point in the history
  • Loading branch information
HotaruBlaze committed Jan 26, 2025
1 parent 8de9659 commit 598171f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/openmw-mp/Script/LangLua/LangLua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ struct build_indices : build_indices<N - 1, N - 1, Is...> {};
template <std::size_t... Is> struct build_indices<0, Is...> : indices<Is...> {};
template <std::size_t N> using IndicesFor = build_indices<N>;

template <size_t... Indices> LuaFuctionData *functions(indices<Indices...>) {
template <size_t... Indices> LuaFunctionData *functions(indices<Indices...>) {

static LuaFuctionData functions_[sizeof...(Indices)]{F_<Indices>::F...};
static LuaFunctionData functions_[sizeof...(Indices)]{F_<Indices>::F...};

static_assert(sizeof(functions_) / sizeof(functions_[0]) ==
sizeof(ScriptFunctions::functions) /
Expand Down

0 comments on commit 598171f

Please sign in to comment.