1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00
This commit is contained in:
Laserlicht
2023-09-25 01:04:06 +02:00
committed by GitHub
parent 3e4a5b7d80
commit 28f4046937
3 changed files with 17 additions and 10 deletions

View File

@@ -461,6 +461,9 @@ CGStatusBar::CGStatusBar(int x, int y, const ImagePath & name, int maxw)
addUsedEvents(LCLICK);
OBJECT_CONSTRUCTION_CAPTURING(255 - DISPOSE);
if(name.empty())
return;
auto backgroundImage = std::make_shared<CPicture>(name);
background = backgroundImage;
pos = background->pos;