Merge pull request #761 from GregoryLundberg/GL_role_missing_role

Fix bug [role] missing role=
This commit is contained in:
Charles Dang 2016-09-01 05:23:05 +11:00 committed by GitHub
commit a7bb98a4c8

View file

@ -900,7 +900,7 @@ end
function wml_actions.role(cfg)
-- role= and type= are handled differently than in other tags,
-- so we need to remove them from the filter
local role = cfg.role
local role = cfg.role or ""
local filter = helper.shallow_literal(cfg)
local types = {}