Fix the unit portrait being displayed with only second_image is provided

This commit is contained in:
pentarctagon 2017-01-07 16:12:24 -06:00
parent 15bea098c4
commit 420a9fa7c0

View file

@ -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