diff --git a/src/zstring.cpp b/src/zstring.cpp index cef956c903..d17348bd31 100644 --- a/src/zstring.cpp +++ b/src/zstring.cpp @@ -733,7 +733,7 @@ void FString::StripRight (const char *charset) if (!strchr (charset, Chars[i])) break; } - if (i == max-1) + if (i == max) { // Nothing to strip. return; }