1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00

Prevent nullptr access

This commit is contained in:
Evil Eye 2021-01-24 15:15:51 +01:00
parent 49c828c138
commit a2171875a0

View File

@ -428,6 +428,9 @@ namespace MWWorld
{
for (auto& projectileState : mProjectiles)
{
if (projectileState.mToDelete)
continue;
auto* projectile = mPhysics->getProjectile(projectileState.mProjectileId);
if (!projectile->isActive())
continue;