From d2d99a4348b1b2d6eb91df42f948c45e8715526e Mon Sep 17 00:00:00 2001 From: kuyondo Date: Sat, 18 Nov 2023 01:04:31 +0800 Subject: [PATCH] give gcc satisfaction --- apps/openmw/mwmechanics/alchemy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmechanics/alchemy.cpp b/apps/openmw/mwmechanics/alchemy.cpp index b697387f506..f74c08da2ac 100644 --- a/apps/openmw/mwmechanics/alchemy.cpp +++ b/apps/openmw/mwmechanics/alchemy.cpp @@ -454,7 +454,7 @@ int MWMechanics::Alchemy::addIngredient(const MWWorld::Ptr& ingredient) void MWMechanics::Alchemy::removeIngredient(size_t index) { - if (index >= 0 && index < mIngredients.size()) + if (index < mIngredients.size()) { mIngredients[index] = MWWorld::Ptr(); updateEffects(); @@ -472,7 +472,7 @@ void MWMechanics::Alchemy::addApparatus(const MWWorld::Ptr& apparatus) void MWMechanics::Alchemy::removeApparatus(size_t index) { - if (index >= 0 && index < mTools.size()) + if (index < mTools.size()) { mTools[index] = MWWorld::Ptr(); updateEffects();