mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fix crash on accessing not yet created object
This commit is contained in:
@ -369,10 +369,11 @@ CMultiMode::CMultiMode(ESelectionScreen ScreenType)
|
||||
: screenType(ScreenType)
|
||||
{
|
||||
OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
|
||||
pos = background->center(); //center, window has size of bg graphic
|
||||
|
||||
background = std::make_shared<CPicture>("MUPOPUP.bmp");
|
||||
picture = std::make_shared<CPicture>("MUMAP.bmp", 16, 77);
|
||||
pos = background->center(); //center, window has size of bg graphic
|
||||
|
||||
picture = std::make_shared<CPicture>("MUMAP.bmp", 16, 77);
|
||||
|
||||
statusBar = CGStatusBar::create(std::make_shared<CPicture>(background->getSurface(), Rect(7, 465, 440, 18), 7, 465));
|
||||
playerName = std::make_shared<CTextInput>(Rect(19, 436, 334, 16), background->getSurface());
|
||||
|
Reference in New Issue
Block a user