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

This commit is contained in:
Christoph Oelckers 2016-11-27 16:34:55 +01:00
commit cc7120d5b6

View file

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