mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom into zscript
This commit is contained in:
commit
cc7120d5b6
1 changed files with 1 additions and 0 deletions
|
@ -397,6 +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);
|
||||
memset(Chars + Len() - remlen, 0, remlen);
|
||||
Data()->Len -= (unsigned)remlen;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue