Merge branch 'master' of https://github.com/rheit/zdoom into zscript

This commit is contained in:
Christoph Oelckers 2016-11-12 15:36:59 +01:00
commit c9ee17cdcd
4 changed files with 18 additions and 17 deletions

View file

@ -397,7 +397,7 @@ void FString::Remove(size_t index, size_t remlen)
if (Data()->RefCount == 1)
{ // Can do this in place
memmove(Chars + index, Chars + index + remlen, Len() - index - remlen);
Data()->Len -= remlen;
Data()->Len -= (unsigned)remlen;
}
else
{ // Must do it in a copy