Fix old array getter operations (#3230)

This commit is contained in:
Denneisk 2024-12-25 21:48:03 +00:00 committed by GitHub
parent 1c14312b14
commit 93b7900481
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,7 +113,7 @@ registerCallback( "postinit", function()
__e2setcost(5)
registerFunction( name, "r:n", id, function(self, args)
local array, index = args[2], args[3]
local array, index = args[1], args[2]
return getter( self, array, index )
end, nil, nil, { legacy = false, deprecated = true })