Browse Source

Fix loading "" bitmap at game start

Vadim Markovtsev 9 years ago
parent
commit
d5327f3daf
1 changed files with 9 additions and 1 deletions
  1. 9 1
      client/windows/CAdvmapInterface.cpp

+ 9 - 1
client/windows/CAdvmapInterface.cpp

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