From 65cc3a0d8963c1a86c353cd7b12dabdef4034672 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 9 Jun 2020 05:10:07 -0400 Subject: [PATCH] CResourceIterator: Use prefix form for iterators Same behavior, minus any created temporaries. --- src/Core/GameProject/CResourceIterator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/GameProject/CResourceIterator.h b/src/Core/GameProject/CResourceIterator.h index 160ea0f3..39726263 100644 --- a/src/Core/GameProject/CResourceIterator.h +++ b/src/Core/GameProject/CResourceIterator.h @@ -27,7 +27,7 @@ public: if (mIter != mpkStore->mResourceEntries.end()) { mpCurEntry = mIter->second; - mIter++; + ++mIter; } else mpCurEntry = nullptr; }