fix: sign over char limit crash

This commit is contained in:
2026-08-23 18:42:22 -04:00
parent 5531c673cd
commit b62b7eb04d
+5 -1
View File
@@ -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