Fixed cProjectileEntity double destroy bug (#3397)
This commit is contained in:
@@ -413,6 +413,10 @@ void cProjectileEntity::HandlePhysics(std::chrono::milliseconds a_Dt, cChunk & a
|
||||
);
|
||||
|
||||
OnHitEntity(*(EntityCollisionCallback.GetHitEntity()), HitPos);
|
||||
if (!IsTicking())
|
||||
{
|
||||
return; // We were destroyed by an override of OnHitEntity
|
||||
}
|
||||
}
|
||||
// TODO: Test the entities in the neighboring chunks, too
|
||||
|
||||
|
||||
Reference in New Issue
Block a user