diff --git a/data/lua/wml-tags.lua b/data/lua/wml-tags.lua index 048afa566bfc..02330ceba5f3 100644 --- a/data/lua/wml-tags.lua +++ b/data/lua/wml-tags.lua @@ -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