diff --git a/src/TLuaEngine.cpp b/src/TLuaEngine.cpp index c4ccda5..cd3562a 100644 --- a/src/TLuaEngine.cpp +++ b/src/TLuaEngine.cpp @@ -572,7 +572,7 @@ sol::table TLuaEngine::StateThreadData::Lua_GetPlayerIdentifiers(int ID) { } sol::table Result = mStateView.create_table(); for (const auto& Pair : IDs) { - Result.add(Pair.first, Pair.second); + Result.set(Pair.first, Pair.second) } return Result; } else {