Kaynağa Gözat

Do not raise on non critical error

AlexVinS 10 yıl önce
ebeveyn
işleme
958d596d54
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      client/CDefHandler.cpp

+ 2 - 1
client/CDefHandler.cpp

@@ -183,7 +183,8 @@ SDL_Surface * CDefHandler::getSprite (int SIndex, const ui8 * FDef, const SDL_Co
 
 	if(SDL_SetPaletteColors(ret->format->palette,palette,0,256) != 0)
 	{
-		throw std::runtime_error("Unable to set palette");	
+		logGlobal->errorStream() << __FUNCTION__ <<": Unable to set palette";
+		logGlobal->errorStream() << SDL_GetError();		
 	}
 	
 	int ftcp=0;