1
0

Nullify deleted pointers.

This commit is contained in:
archshift
2014-06-19 01:49:56 -07:00
parent 35a4aa419c
commit e8143de01b
35 changed files with 75 additions and 18 deletions

View File

@@ -84,6 +84,7 @@ void cSkeleton::Attack(float a_Dt)
if (!Arrow->Initialize(*m_World))
{
delete Arrow;
Arrow = NULL;
return;
}
m_World->BroadcastSpawnEntity(*Arrow);