Lua/LuaState: Fix std::vector query for good
This commit is contained in:
@@ -172,11 +172,11 @@ namespace Nz
|
||||
Nz::CallOnExit popStack { [&instance]() { instance.Pop(); } };
|
||||
instance.PushInteger(pos++);
|
||||
|
||||
if (instance.GetTable(index) == Nz::LuaType_Nil)
|
||||
int tableIndex = (index < 0) ? index - 1 : index;
|
||||
if (instance.GetTable(tableIndex) == Nz::LuaType_Nil)
|
||||
break;
|
||||
|
||||
T arg {};
|
||||
|
||||
T arg;
|
||||
if (LuaImplQueryArg(instance, -1, &arg, TypeTag<T>()) != 1)
|
||||
{
|
||||
instance.Error("Type needs more than one place to be initialized");
|
||||
|
||||
Reference in New Issue
Block a user