Fix incorrect error message when encountering an unknown persistent tag
(cherry-picked from commit d2a8c5bb32
)
This commit is contained in:
parent
53780f5165
commit
83a6243fb9
1 changed files with 2 additions and 1 deletions
|
@ -409,7 +409,8 @@ if wesnoth.kernel_type() == "Game Lua Kernel" then
|
|||
local warned_tags = {}
|
||||
for i = 1, #cfg do
|
||||
local name = cfg[i][1]
|
||||
local tag = wesnoth.persistent_tags[name]
|
||||
-- Use rawget so as not to trigger the auto-adding mechanism
|
||||
local tag = rawget(wesnoth.persistent_tags, name)
|
||||
if type(tag) == 'table' and type(tag.read) == 'function' then
|
||||
tag.read(cfg[i][2])
|
||||
elseif tag ~= nil and not warned_tags[name] then
|
||||
|
|
Loading…
Add table
Reference in a new issue