forked from cafeberry/cafeberry
fix: sign over char limit crash
This commit is contained in:
@@ -167,8 +167,12 @@ void SignTileEntity::setChanged()
|
||||
|
||||
void SignTileEntity::SetMessage(int iIndex,wstring &wsText)
|
||||
{
|
||||
//str1kk3r - if we go over 15 chars, then cut it down to just 15
|
||||
if (wsText.length() > MAX_LINE_LENGTH)
|
||||
{
|
||||
wsText = wsText.substr(0, MAX_LINE_LENGTH);
|
||||
}
|
||||
m_wsmessages[iIndex]=wsText;
|
||||
|
||||
}
|
||||
|
||||
// 4J-PB - added for string verification
|
||||
|
||||
Reference in New Issue
Block a user