mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 15:23:48 +01:00
Fix vector indexing stack overflow
This commit is contained in:
parent
9d28fb24d4
commit
1b85482ca7
@ -1,5 +1,5 @@
|
||||
-- Localize globals
|
||||
local assert, math, pairs, rawset, setmetatable, unpack, vector = assert, math, pairs, rawset, setmetatable, unpack, vector
|
||||
local assert, math, pairs, rawget, rawset, setmetatable, unpack, vector = assert, math, pairs, rawget, rawset, setmetatable, unpack, vector
|
||||
|
||||
-- Set environment
|
||||
local _ENV = {}
|
||||
@ -19,7 +19,7 @@ metatable = {
|
||||
__index = function(table, key)
|
||||
local index = index_aliases[key]
|
||||
if index ~= nil then
|
||||
return table[index]
|
||||
return rawget(table, index)
|
||||
end
|
||||
return _ENV[key]
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user