mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 14:11:32 +00:00
give gcc satisfaction
This commit is contained in:
parent
f3ad16620a
commit
d2d99a4348
1 changed files with 2 additions and 2 deletions
|
@ -454,7 +454,7 @@ int MWMechanics::Alchemy::addIngredient(const MWWorld::Ptr& ingredient)
|
||||||
|
|
||||||
void MWMechanics::Alchemy::removeIngredient(size_t index)
|
void MWMechanics::Alchemy::removeIngredient(size_t index)
|
||||||
{
|
{
|
||||||
if (index >= 0 && index < mIngredients.size())
|
if (index < mIngredients.size())
|
||||||
{
|
{
|
||||||
mIngredients[index] = MWWorld::Ptr();
|
mIngredients[index] = MWWorld::Ptr();
|
||||||
updateEffects();
|
updateEffects();
|
||||||
|
@ -472,7 +472,7 @@ void MWMechanics::Alchemy::addApparatus(const MWWorld::Ptr& apparatus)
|
||||||
|
|
||||||
void MWMechanics::Alchemy::removeApparatus(size_t index)
|
void MWMechanics::Alchemy::removeApparatus(size_t index)
|
||||||
{
|
{
|
||||||
if (index >= 0 && index < mTools.size())
|
if (index < mTools.size())
|
||||||
{
|
{
|
||||||
mTools[index] = MWWorld::Ptr();
|
mTools[index] = MWWorld::Ptr();
|
||||||
updateEffects();
|
updateEffects();
|
||||||
|
|
Loading…
Reference in a new issue