mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 16:45:17 -04:00
[Client] Fix loop in ActiveSpells::getEffectDuration()
This commit is contained in:
parent
e84f85863e
commit
abc4090a0f
@ -331,7 +331,7 @@ namespace MWMechanics
|
|||||||
if (sourceId.compare(it->first) == 0)
|
if (sourceId.compare(it->first) == 0)
|
||||||
{
|
{
|
||||||
for (std::vector<ActiveEffect>::iterator effectIt = it->second.mEffects.begin();
|
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)
|
if (effectIt->mEffectId == effectId)
|
||||||
return effectIt->mDuration;
|
return effectIt->mDuration;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user