Skip to content

Commit

Permalink
attempt to fix bug in [message]
Browse files Browse the repository at this point in the history
previously this bug http://i.imgur.com/9B7bquA.png happend in LoW scenario3.
  • Loading branch information
gfgtdf committed Nov 27, 2015
1 parent be68ebc commit 59233ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/lua/wml/message.lua
Expand Up @@ -42,9 +42,9 @@ local function get_speaker(cfg)
if cfg.speaker == "narrator" then
speaker = "narrator"
elseif cfg.speaker == "unit" then
speaker = wesnoth.get_unit(context.x1, context.y1)
speaker = wesnoth.get_unit(context.x1 or 0, context.y1 or 0)
elseif cfg.speaker == "second_unit" then
speaker = wesnoth.get_unit(context.x2, context.y2)
speaker = wesnoth.get_unit(context.x2 or 0, context.y2 or 0)
else
speaker = wesnoth.get_units(cfg)[1]
end
Expand Down

0 comments on commit 59233ce

Please sign in to comment.