Fix color_adjust requiring all keys

Fixes #6191
This commit is contained in:
Celtic Minstrel 2021-10-14 01:07:33 -04:00 committed by Severin Glöckner
parent 1361d12de6
commit 4ab4b64ed7

View file

@ -715,7 +715,7 @@ function wml_actions.scroll(cfg)
end end
function wml_actions.color_adjust(cfg) function wml_actions.color_adjust(cfg)
wesnoth.interface.color_adjust(cfg.red, cfg.green, cfg.blue) wesnoth.interface.color_adjust(cfg.red or 0, cfg.green or 0, cfg.blue or 0)
end end
function wml_actions.end_turn(cfg) function wml_actions.end_turn(cfg)