mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-16 11:09:43 +00:00
Prevent nullptr access
This commit is contained in:
parent
49c828c138
commit
a2171875a0
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