- fixed: empty strings cannot be substituted.

This commit is contained in:
Christoph Oelckers 2019-02-23 09:20:30 +01:00
parent e091369a38
commit a50a0c5b0d

View file

@ -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(); )
{