[Bug Fix] Fix issues with Lua tables not starting at index 1 (#3160)

* [Bug Fix] Fix issues with Lua tables not starting at index 1

# Notes
- This would cause the first item in the table to be inaccessible since Lua tables start at index `1` instead of index `0`.
- All other spots using Lua tables have their indexes starting at `1`.

* Update lua_general.cpp
This commit is contained in:
Alex King
2023-03-30 06:02:53 -04:00
committed by GitHub
parent d4174ca236
commit 6960a1a682
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ luabind::object Lua_Object::GetEntityVariables(lua_State* L) {
if (d_) {
auto self = reinterpret_cast<NativeType*>(d_);
auto l = self->GetEntityVariables();
auto i = 0;
auto i = 1;
for (const auto& v : l) {
t[i] = v;
i++;