1
0
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:
Vadim Markovtsev 2016-10-02 22:05:53 +02:00
parent a4e550e3cf
commit d5327f3daf

View File

@ -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;