Fixed missing uppercase when update a model's piece.

This commit is contained in:
leo 2015-02-09 01:33:28 +00:00
parent 853f28c6c3
commit f4e14b6394

View file

@ -56,7 +56,7 @@ void PieceInfo::SetModel(lcModel* Model)
mFlags = LC_PIECE_MODEL;
mModel = Model;
strncpy(m_strName, Model->GetProperties().mName.toLatin1().data(), sizeof(m_strName));
strncpy(m_strName, Model->GetProperties().mName.toUpper().toLatin1().data(), sizeof(m_strName));
m_strName[sizeof(m_strName)-1] = 0;
strncpy(m_strDescription, Model->GetProperties().mName.toLatin1().data(), sizeof(m_strDescription));
m_strDescription[sizeof(m_strDescription)-1] = 0;