mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
ready
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user