Allow hex references to hold auxiliary user values

This commit is contained in:
Celtic Minstrel 2021-03-06 18:44:29 -05:00 committed by GitHub
parent 51e4b56a1e
commit 37fde7aaee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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