mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- fixed: empty strings cannot be substituted.
This commit is contained in:
parent
e091369a38
commit
a50a0c5b0d
1 changed files with 1 additions and 0 deletions
|
@ -1039,6 +1039,7 @@ void FString::Substitute (const char *oldstr, const char *newstr)
|
|||
|
||||
void FString::Substitute (const char *oldstr, const char *newstr, size_t oldstrlen, size_t newstrlen)
|
||||
{
|
||||
if (oldstr == nullptr || newstr == nullptr || *oldstr == 0) return;
|
||||
LockBuffer();
|
||||
for (size_t checkpt = 0; checkpt < Len(); )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue