From 96e1726e4d102c117d27007791d0afb00b425681 Mon Sep 17 00:00:00 2001 From: Allofich Date: Sat, 3 Sep 2016 00:16:24 +0900 Subject: [PATCH] Fix warnings --- apps/openmw/mwmechanics/character.cpp | 2 +- apps/openmw/mwmechanics/spellcasting.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index 2c21fb17f..bb8929f8b 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -1245,7 +1245,7 @@ bool CharacterController::updateWeaponState() const ESM::Static* castStatic = MWBase::Environment::get().getWorld()->getStore().get().find ("VFX_Hands"); - for (int iter = 0; iter < spell->mEffects.mList.size(); ++iter) // play hands vfx for each effect + for (size_t iter = 0; iter < spell->mEffects.mList.size(); ++iter) // play hands vfx for each effect { if (mAnimation->getNode("Bip01 L Hand")) mAnimation->addEffect("meshes\\" + castStatic->mModel, -1, false, "Bip01 L Hand", effect->mParticle); diff --git a/apps/openmw/mwmechanics/spellcasting.cpp b/apps/openmw/mwmechanics/spellcasting.cpp index 38191ec4a..9fcd488ca 100644 --- a/apps/openmw/mwmechanics/spellcasting.cpp +++ b/apps/openmw/mwmechanics/spellcasting.cpp @@ -345,7 +345,7 @@ namespace MWMechanics false, effects, mCaster, mSourceName, fallbackDirection); else { - const ESM::EffectList empty; + ESM::EffectList empty; MWBase::Environment::get().getWorld()->launchMagicBolt(model, sound, mId, speed, false, empty, mCaster, mSourceName, fallbackDirection); }