Skip to content

Commit

Permalink
Fix the unit portrait being displayed with only second_image is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon committed Jan 7, 2017
1 parent 15bea09 commit 420a9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/lua/wml/message.lua
Expand Up @@ -12,7 +12,7 @@ local function get_image(cfg, speaker)
local image = cfg.image
local left_side = true

if speaker and (image == nil or image == "") then
if speaker and (image == nil or image == "") and (cfg.second_image == nil or cfg.second_image == "") then
image = speaker.portrait
end

Expand Down

0 comments on commit 420a9fa

Please sign in to comment.