diff options
author | archshift <admin@archshift.com> | 2014-06-19 10:49:56 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-06-19 10:49:56 +0200 |
commit | e8143de01bff31f9e153949d7ab5b0df82629541 (patch) | |
tree | d6a37e6433f973765c8ca63e408dbbd420b08d70 /src/Mobs | |
parent | Merge pull request #1096 from mc-server/redstonerefactor (diff) | |
download | cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.gz cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.bz2 cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.lz cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.xz cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.zst cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Blaze.cpp | 1 | ||||
-rw-r--r-- | src/Mobs/Ghast.cpp | 1 | ||||
-rw-r--r-- | src/Mobs/Skeleton.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/Mobs/Blaze.cpp b/src/Mobs/Blaze.cpp index 19bdf8737..b4104d530 100644 --- a/src/Mobs/Blaze.cpp +++ b/src/Mobs/Blaze.cpp @@ -47,6 +47,7 @@ void cBlaze::Attack(float a_Dt) if (!FireCharge->Initialize(*m_World)) { delete FireCharge; + FireCharge = NULL; return; } m_World->BroadcastSpawnEntity(*FireCharge); diff --git a/src/Mobs/Ghast.cpp b/src/Mobs/Ghast.cpp index 4df8e165c..6aac14779 100644 --- a/src/Mobs/Ghast.cpp +++ b/src/Mobs/Ghast.cpp @@ -49,6 +49,7 @@ void cGhast::Attack(float a_Dt) if (!GhastBall->Initialize(*m_World)) { delete GhastBall; + GhastBall = NULL; return; } m_World->BroadcastSpawnEntity(*GhastBall); diff --git a/src/Mobs/Skeleton.cpp b/src/Mobs/Skeleton.cpp index e7f3971cc..e3357185d 100644 --- a/src/Mobs/Skeleton.cpp +++ b/src/Mobs/Skeleton.cpp @@ -84,6 +84,7 @@ void cSkeleton::Attack(float a_Dt) if (!Arrow->Initialize(*m_World)) { delete Arrow; + Arrow = NULL; return; } m_World->BroadcastSpawnEntity(*Arrow); |