mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 09:06: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)
|
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…
Reference in a new issue