Fix access to uninitialized variable

master
Unknown 2018-04-15 12:59:47 +02:00
parent 456189fd16
commit 72d29f21f0
1 changed files with 3 additions and 1 deletions

View File

@ -181,7 +181,9 @@ TileGenerator::TileGenerator():
m_tileMapXOffset(0),
m_tileMapYOffset(0),
m_surfaceHeight(INT_MIN),
m_surfaceDepth(INT_MAX)
m_surfaceDepth(INT_MAX),
m_tileBorderXCount(0),
m_tileBorderYCount(0)
{
memset(&m_databaseFormatFound, 0, sizeof(m_databaseFormatFound));
// Load default grey colors.