Fix a Lua error in [modify_side]

This commit is contained in:
sigurdfdragon 2017-02-27 20:20:52 -05:00 committed by Charles Dang
parent 9ef1e928c7
commit 05bc654e76

View file

@ -987,7 +987,7 @@ function wml_actions.modify_side(cfg)
side.hidden = cfg.hidden
end
if cfg.color or cfg.flag then
wesnoth.set_team_id(side.side, cfg.flag, cfg.color)
wesnoth.set_side_id(side.side, cfg.flag, cfg.color)
end
if cfg.flag_icon then
side.flag_icon = cfg.flag_icon