Lua: Fix incorrect check for string type
This commit is contained in:
parent
351ad17758
commit
b261de4f2b
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ if wesnoth.kernel_type() == "Game Lua Kernel" then
|
|||
return self.x
|
||||
elseif key == 2 then
|
||||
return self.y
|
||||
elseif type(key) ~= string or (#key > 0 and key[0] ~= '_') then
|
||||
elseif type(key) ~= 'string' or (#key > 0 and key[0] ~= '_') then
|
||||
return hex_mt[key]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue