- made adjustments to text input menu to work with scripts.

This commit is contained in:
Christoph Oelckers 2017-02-12 21:45:37 +01:00
commit b6ad14a614
14 changed files with 107 additions and 81 deletions

View file

@ -368,15 +368,15 @@ FString &FString::CopyCStrPart(const char *tail, size_t tailLen)
return *this;
}
void FString::Truncate(long newlen)
void FString::Truncate(size_t newlen)
{
if (newlen <= 0)
if (newlen == 0)
{
Data()->Release();
NullString.RefCount++;
Chars = &NullString.Nothing[0];
}
else if (newlen < (long)Len())
else if (newlen < Len())
{
ReallocBuffer (newlen);
Chars[newlen] = '\0';