1
0
Fork 0

Update Monster.cpp

This commit is contained in:
Alexander Harkness 2014-04-10 15:50:43 +01:00
parent e08a31daf5
commit 2d02ff1df8
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,3 @@
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "IncludeAllMonsters.h"
@ -526,7 +525,10 @@ void cMonster::KilledBy(cEntity * a_Killer)
break;
}
}
m_World->SpawnExperienceOrb(GetPosX(), GetPosY(), GetPosZ(), Reward);
if (a_Killer != NULL)
{
m_World->SpawnExperienceOrb(GetPosX(), GetPosY(), GetPosZ(), Reward);
}
m_DestroyTimer = 0;
}