Prevent nullptr access

pull/3044/head
Evil Eye 4 years ago
parent 49c828c138
commit a2171875a0

@ -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…
Cancel
Save