We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af32894 commit c99423bCopy full SHA for c99423b
Shared/mods/deathmatch/logic/lua/CLuaFunctionParser.h
@@ -18,7 +18,9 @@
18
19
struct CLuaFunctionParserBase
20
{
21
+ // iIndex is passed around by reference
22
std::size_t iIndex = 1;
23
+
24
std::string strError = "";
25
std::string strErrorFoundType = "";
26
@@ -212,7 +214,7 @@ struct CLuaFunctionParserBase
212
214
213
215
// lua_State* can be taken as first argument of any function
216
if constexpr (std::is_same_v<T, lua_State*>)
- return index == 0;
217
+ return index == 1;
218
219
// variants can be used by any of the underlying types
220
// thus recursively use this function
0 commit comments