Allow hex references to hold auxiliary user values
This commit is contained in:
parent
51e4b56a1e
commit
37fde7aaee
1 changed files with 3 additions and 0 deletions
|
@ -138,6 +138,9 @@ if wesnoth.kernel_type() == "Game Lua Kernel" then
|
|||
self.y = val
|
||||
elseif key == 'info' then
|
||||
error('hex.info is read-only', 1)
|
||||
else
|
||||
-- If it's not a known key, just set it
|
||||
rawset(self, key, val)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue