mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-28 08:11:34 +00:00
Merge branch 'fix_crash_on_travel' into 'master'
Fix crash on travelling using silt strider See merge request OpenMW/openmw!1937
This commit is contained in:
commit
1d597888ec
1 changed files with 3 additions and 2 deletions
|
@ -2249,9 +2249,10 @@ namespace MWMechanics
|
|||
if (!MWBase::Environment::get().getMechanicsManager()->isAIActive())
|
||||
return;
|
||||
|
||||
for (const Actor& actor : mActors)
|
||||
for (auto it = mActors.begin(); it != mActors.end();)
|
||||
{
|
||||
const MWWorld::Ptr ptr = actor.getPtr();
|
||||
const MWWorld::Ptr ptr = it->getPtr();
|
||||
++it;
|
||||
if (ptr == getPlayer()
|
||||
|| !isConscious(ptr)
|
||||
|| ptr.getClass().getCreatureStats(ptr).isParalyzed())
|
||||
|
|
Loading…
Reference in a new issue