From 46e82a99ccf938194ef4e4f1baa35a88ad1301f9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 01:07:37 -0400 Subject: [PATCH] CStringList: Simplify assertion in StringByIndex() This is unsigned, so the lower bound will always be valid. --- src/Core/Resource/CStringList.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Resource/CStringList.h b/src/Core/Resource/CStringList.h index a16ddfa5..16d5dcda 100644 --- a/src/Core/Resource/CStringList.h +++ b/src/Core/Resource/CStringList.h @@ -21,7 +21,7 @@ public: TString StringByIndex(size_t Index) const { - ASSERT(Index >= 0 && Index < mStringList.size()); + ASSERT(Index < mStringList.size()); return mStringList[Index]; } };