1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 21:45:35 +00:00

Merge pull request #2898 from akortunov/master

Update active spells during rest
This commit is contained in:
Andrei Kortunov 2020-06-08 13:30:16 +04:00 committed by GitHub
commit 3741355dca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2051,6 +2051,8 @@ namespace MWMechanics
for(PtrActorMap::iterator iter(mActors.begin()); iter != mActors.end(); ++iter)
{
iter->first.getClass().getCreatureStats(iter->first).getActiveSpells().update(duration);
if (iter->first.getClass().getCreatureStats(iter->first).isDead())
continue;