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 GitHub
parent 039fed73c7
commit 485b98e5bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -716,7 +716,7 @@ function wml_actions.scroll(cfg)
end
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
function wml_actions.end_turn(cfg)