mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 12:35:46 +00:00
give gcc satisfaction
This commit is contained in:
parent
f3ad16620a
commit
d2d99a4348
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user