diff options
author | Mattes D <github@xoft.cz> | 2014-04-10 17:23:32 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-04-10 17:23:32 +0200 |
commit | b45e8a8bd9a3085aaeaeaae4c7f419d4e13e1e21 (patch) | |
tree | 2b2242294dacef62f59de4bb36e1288c553fbf71 /src/Mobs | |
parent | Merge pull request #871 from worktycho/worldstorage (diff) | |
parent | Fixed GitHuB WebEdit fail. (diff) | |
download | cuberite-b45e8a8bd9a3085aaeaeaae4c7f419d4e13e1e21.tar cuberite-b45e8a8bd9a3085aaeaeaae4c7f419d4e13e1e21.tar.gz cuberite-b45e8a8bd9a3085aaeaeaae4c7f419d4e13e1e21.tar.bz2 cuberite-b45e8a8bd9a3085aaeaeaae4c7f419d4e13e1e21.tar.lz cuberite-b45e8a8bd9a3085aaeaeaae4c7f419d4e13e1e21.tar.xz cuberite-b45e8a8bd9a3085aaeaeaae4c7f419d4e13e1e21.tar.zst cuberite-b45e8a8bd9a3085aaeaeaae4c7f419d4e13e1e21.zip |
Diffstat (limited to 'src/Mobs')
-rw-r--r-- | src/Mobs/Monster.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index aa6071515..171097aba 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -526,7 +526,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; } |