Fix missing image in the test scenario sample dialog

This commit is contained in:
Celtic Minstrel 2020-09-26 20:34:32 -04:00 committed by Celtic Minstrel
parent f57217f6c4
commit b3033ee0bd

View File

@ -1265,7 +1265,7 @@ local result = wesnoth.synchronize_choice(function()
local function select()
local i = dialog.the_list.selected_index
local ut = wesnoth.unit_types[types[i]].__cfg
local profile = string.gsub(ut.profile, "([^/]+)$", "transparent/%1")
local profile = ut.profile
if dialog.flip.selected_index == 1 then profile = profile .. "~FL()" end
dialog.the_image.label = profile
end