1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-28 11:09:40 +00:00

[Client] Fix loop in ActiveSpells::getEffectDuration()

This commit is contained in:
David Cernat 2019-05-20 23:09:54 +03:00
parent e84f85863e
commit abc4090a0f

View file

@ -331,7 +331,7 @@ namespace MWMechanics
if (sourceId.compare(it->first) == 0)
{
for (std::vector<ActiveEffect>::iterator effectIt = it->second.mEffects.begin();
effectIt != it->second.mEffects.end(); it++)
effectIt != it->second.mEffects.end(); ++effectIt)
{
if (effectIt->mEffectId == effectId)
return effectIt->mDuration;