We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8fbacd commit ca877d3Copy full SHA for ca877d3
Shared/mods/deathmatch/logic/lua/CLuaFunctionParser.h
@@ -455,7 +455,7 @@ struct CLuaFunctionParserBase
455
using param = typename is_2specialization<T, std::vector>::param1_t;
456
T vecData;
457
lua_pushnil(L); /* first key */
458
- while (lua_next(L, index) != 0)
+ while (lua_next(L, index < 0 ? (index - 1) : index) != 0)
459
{
460
if (!TypeMatch<param>(L, -1))
461
@@ -477,7 +477,7 @@ struct CLuaFunctionParserBase
477
using value_t = typename is_5specialization<T, std::unordered_map>::param2_t;
478
T map;
479
480
481
482
if (!TypeMatch<value_t>(L, -1) || !TypeMatch<key_t>(L, -2))
483
0 commit comments