Fix [scroll] with omitted x or y

As reported at https://forums.wesnoth.org/viewtopic.php?f=4&t=46168
This commit is contained in:
Celtic Minstrel 2017-05-28 12:21:58 -04:00 committed by GitHub
parent 553f7c3c8b
commit 7c4e3c62f5

View file

@ -739,7 +739,7 @@ function wml_actions.scroll(cfg)
end
end
if have_human or #sides == 0 then
wesnoth.scroll(cfg.x, cfg.y)
wesnoth.scroll(cfg.x or 0, cfg.y or 0)
end
end