Lua/LuaState: Fix Execute not being able to return values
This commit is contained in:
parent
2ca844be63
commit
67dbb9e7c8
|
|
@ -373,7 +373,7 @@ namespace Nz
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Run(0, 0);
|
return Run(0, LUA_MULTRET);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LuaState::ExecuteFromFile(const String& filePath)
|
bool LuaState::ExecuteFromFile(const String& filePath)
|
||||||
|
|
@ -419,7 +419,7 @@ namespace Nz
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Run(0, 0);
|
return Run(0, LUA_MULTRET);
|
||||||
}
|
}
|
||||||
|
|
||||||
int LuaState::GetAbsIndex(int index) const
|
int LuaState::GetAbsIndex(int index) const
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue