1
0
Fork 0

Using "a_ClosestPlayer != NULL" in cExpOrb.

This commit is contained in:
STRWarrior 2013-12-13 15:32:25 +01:00
parent 91587f63c4
commit 39443c63ad
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ void cExpOrb::SpawnOn(cClientHandle & a_Client)
void cExpOrb::Tick(float a_Dt, cChunk & a_Chunk)
{
cPlayer * a_ClosestPlayer(m_World->FindClosestPlayer(Vector3f(GetPosition()), 5));
if (a_ClosestPlayer)
if (a_ClosestPlayer != NULL)
{
Vector3f a_PlayerPos(a_ClosestPlayer->GetPosition());
a_PlayerPos.y++;