fix: sign over char limit crash
This commit is contained in:
1 parent
5531c673cd
commit
b62b7eb04d
1 file changed
+5
-1
@@ -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