fix: use getter instead of accessing attribute
`name` is not an exported attribute of the Object table, so this always returned nil, failing all comparisons.
This commit is contained in:
committed by
GitHub
parent
8dd8e63d21
commit
00d4e6aee2
@@ -523,7 +523,7 @@ basalt = {
|
||||
|
||||
getFrame = function(name)
|
||||
for _, value in pairs(frames) do
|
||||
if (value.name == name) then
|
||||
if (value.getName() == name) then
|
||||
return value
|
||||
end
|
||||
end
|
||||
@@ -600,4 +600,4 @@ if(basaltPlugins~=nil)then
|
||||
end
|
||||
end
|
||||
|
||||
return basalt
|
||||
return basalt
|
||||
|
||||
Reference in New Issue
Block a user