uninitialized variables-gfx

This commit is contained in:
AzaezelX 2020-05-11 15:00:25 -05:00
parent 1efb687867
commit b9c207765e
33 changed files with 108 additions and 43 deletions

View file

@ -198,14 +198,17 @@ GFont::GFont()
VECTOR_SET_ASSOCIATION(mCharInfoList);
VECTOR_SET_ASSOCIATION(mTextureSheets);
for (U32 i = 0; i < (sizeof(mRemapTable) / sizeof(S32)); i++)
mRemapTable[i] = -1;
std::fill_n(mRemapTable, Font_Table_MAX,-1);
mCurX = mCurY = mCurSheet = -1;
mPlatformFont = NULL;
mSize = 0;
mCharSet = 0;
mHeight = 0;
mBaseline = 0;
mAscent = 0;
mDescent = 0;
mNeedSave = false;
mMutex = Mutex::createMutex();