Do not call into things we don't own in destructors
- Remove improper accesses in cChunk destructor * Fixes #4894
This commit is contained in:
@@ -250,21 +250,6 @@ void cEntity::Destroy()
|
||||
|
||||
|
||||
|
||||
void cEntity::DestroyNoScheduling(bool a_ShouldBroadcast)
|
||||
{
|
||||
SetIsTicking(false);
|
||||
if (a_ShouldBroadcast)
|
||||
{
|
||||
m_World->BroadcastDestroyEntity(*this);
|
||||
}
|
||||
|
||||
Destroyed();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cEntity::TakeDamage(cEntity & a_Attacker)
|
||||
{
|
||||
int RawDamage = a_Attacker.GetRawDamageAgainst(*this);
|
||||
|
||||
Reference in New Issue
Block a user