From 4898bec12da37709bc019bcf73a22cc93404c251 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 1 Jan 2017 16:55:45 +0100 Subject: [PATCH] - fixed: The StripRight fix left some code from a previous fix in that no longer applies. --- src/zstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zstring.cpp b/src/zstring.cpp index cef956c90..d17348bd3 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; }