mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 17:53:27 +00:00
Fix not showing selected unit profile image in widescreen theme
This commit is contained in:
parent
7df0da5659
commit
40319fe849
@ -1023,6 +1023,10 @@ std::string unit::small_profile() const
|
|||||||
return small_profile_;
|
return small_profile_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!profile_.empty() && small_profile_ != "unit_image" && profile_ != "unit_image") {
|
||||||
|
return profile_;
|
||||||
|
}
|
||||||
|
|
||||||
return absolute_image();
|
return absolute_image();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user