Skip to content

Commit

Permalink
give gcc satisfaction
Browse files Browse the repository at this point in the history
  • Loading branch information
kuyondo committed Nov 17, 2023
1 parent f3ad166 commit d2d99a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/openmw/mwmechanics/alchemy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit d2d99a4

Please sign in to comment.