fix [message] side_for= not working for the last side.
fixes #2776
(cherry-picked from commit 0f756b8189
)
This commit is contained in:
parent
687d81850a
commit
59cc2448dc
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ function wesnoth.wml_actions.message(cfg)
|
|||
-- Sanity checks on side number and controller
|
||||
for side in utils.split(sides_for) do
|
||||
side = tonumber(side)
|
||||
if side > 0 and side < #wesnoth.sides
|
||||
if side > 0 and side <= #wesnoth.sides
|
||||
and wesnoth.sides[side].controller == "human"
|
||||
and wesnoth.sides[side].is_local
|
||||
then
|
||||
|
|
Loading…
Add table
Reference in a new issue