mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 07:09:39 +00:00
Merge branch 'projectile_crash' into 'master'
Prevent nullptr access See merge request OpenMW/openmw!565
This commit is contained in:
commit
2353a4d8ec
1 changed files with 3 additions and 0 deletions
|
@ -428,6 +428,9 @@ namespace MWWorld
|
|||
{
|
||||
for (auto& projectileState : mProjectiles)
|
||||
{
|
||||
if (projectileState.mToDelete)
|
||||
continue;
|
||||
|
||||
auto* projectile = mPhysics->getProjectile(projectileState.mProjectileId);
|
||||
if (!projectile->isActive())
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue