summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-13 15:32:25 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-13 15:32:25 +0100
commit39443c63adb600d05dc5ebc961def5b80ccd5ed8 (patch)
treef7ad8af4d855cd103571d406e6a8c3ba37b01af8 /src/Entities
parentUnknown packet type extended to 32 bits. (diff)
downloadcuberite-39443c63adb600d05dc5ebc961def5b80ccd5ed8.tar
cuberite-39443c63adb600d05dc5ebc961def5b80ccd5ed8.tar.gz
cuberite-39443c63adb600d05dc5ebc961def5b80ccd5ed8.tar.bz2
cuberite-39443c63adb600d05dc5ebc961def5b80ccd5ed8.tar.lz
cuberite-39443c63adb600d05dc5ebc961def5b80ccd5ed8.tar.xz
cuberite-39443c63adb600d05dc5ebc961def5b80ccd5ed8.tar.zst
cuberite-39443c63adb600d05dc5ebc961def5b80ccd5ed8.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/ExpOrb.cpp2
1 files changed, 1 insertions, 1 deletions
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++;