From 2d2963ead43a8183c5819f977b352014c173b476 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; }