mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Fix loading "" bitmap at game start
This commit is contained in:
parent
a4e550e3cf
commit
d5327f3daf
@ -465,7 +465,15 @@ CAdvMapInt::CAdvMapInt():
|
||||
townList.onSelect = std::bind(&CAdvMapInt::selectionChanged,this);
|
||||
adventureInt=this;
|
||||
bg = BitmapHandler::loadBitmap(ADVOPT.mainGraphic);
|
||||
bgWorldView = BitmapHandler::loadBitmap(ADVOPT.worldViewGraphic);
|
||||
if (ADVOPT.worldViewGraphic != "")
|
||||
{
|
||||
bgWorldView = BitmapHandler::loadBitmap(ADVOPT.worldViewGraphic);
|
||||
}
|
||||
else
|
||||
{
|
||||
bgWorldView = nullptr;
|
||||
logGlobal->warnStream() << "ADVOPT.worldViewGraphic is empty => bitmap not loaded";
|
||||
}
|
||||
scrollingDir = 0;
|
||||
updateScreen = false;
|
||||
anim=0;
|
||||
|
Loading…
Reference in New Issue
Block a user