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:
parent
553f7c3c8b
commit
7c4e3c62f5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue