浏览代码

* warning fixed (use of an uninitialized variable)

mateuszb 16 年之前
父节点
当前提交
5fe80d89ef
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/Graphics.cpp

+ 1 - 1
client/Graphics.cpp

@@ -616,7 +616,7 @@ void Graphics::blueToPlayersAdv(SDL_Surface * sur, int player)
 
 void Graphics::loadTrueType()
 {
-	bool ttfPresent;//was TTF initialised or not
+	bool ttfPresent = false;//was TTF initialised or not
 	for(int i = 0; i < FONTS_NUMBER; i++)
 		fontsTrueType[i] = NULL;
 	std::ifstream ff(DATA_DIR "/config/fonts.txt");