Using "a_ClosestPlayer != NULL" in cExpOrb.
This commit is contained in:
parent
91587f63c4
commit
39443c63ad
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user