mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
* warning fixed (use of an uninitialized variable)
This commit is contained in:
@@ -616,7 +616,7 @@ void Graphics::blueToPlayersAdv(SDL_Surface * sur, int player)
|
|||||||
|
|
||||||
void Graphics::loadTrueType()
|
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++)
|
for(int i = 0; i < FONTS_NUMBER; i++)
|
||||||
fontsTrueType[i] = NULL;
|
fontsTrueType[i] = NULL;
|
||||||
std::ifstream ff(DATA_DIR "/config/fonts.txt");
|
std::ifstream ff(DATA_DIR "/config/fonts.txt");
|
||||||
|
Reference in New Issue
Block a user