From 39443c63adb600d05dc5ebc961def5b80ccd5ed8 Mon Sep 17 00:00:00 2001 From: STRWarrior Date: Fri, 13 Dec 2013 15:32:25 +0100 Subject: Using "a_ClosestPlayer != NULL" in cExpOrb. --- src/Entities/ExpOrb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entities/ExpOrb.cpp b/src/Entities/ExpOrb.cpp index 83c522a18..27d34f6ed 100644 --- a/src/Entities/ExpOrb.cpp +++ b/src/Entities/ExpOrb.cpp @@ -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++; -- cgit v1.2.3