mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Prevent nullptr access
This commit is contained in:
parent
49c828c138
commit
a2171875a0
@ -428,6 +428,9 @@ namespace MWWorld
|
|||||||
{
|
{
|
||||||
for (auto& projectileState : mProjectiles)
|
for (auto& projectileState : mProjectiles)
|
||||||
{
|
{
|
||||||
|
if (projectileState.mToDelete)
|
||||||
|
continue;
|
||||||
|
|
||||||
auto* projectile = mPhysics->getProjectile(projectileState.mProjectileId);
|
auto* projectile = mPhysics->getProjectile(projectileState.mProjectileId);
|
||||||
if (!projectile->isActive())
|
if (!projectile->isActive())
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user