Skip to content

Commit

Permalink
fix [message] side_for= not working for the last side.
Browse files Browse the repository at this point in the history
fixes #2776
  • Loading branch information
gfgtdf committed Apr 4, 2018
1 parent f78e32c commit 56cf77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/lua/wml/message.lua
Expand Up @@ -342,7 +342,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
Expand Down

0 comments on commit 56cf77e

Please sign in to comment.