summaryrefslogtreecommitdiffstats
path: root/source/FallingBlock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/FallingBlock.cpp')
-rw-r--r--source/FallingBlock.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/FallingBlock.cpp b/source/FallingBlock.cpp
index 5dc99c771..05766ae01 100644
--- a/source/FallingBlock.cpp
+++ b/source/FallingBlock.cpp
@@ -22,10 +22,14 @@ cFallingBlock::cFallingBlock(const Vector3i & a_BlockPosition, BLOCKTYPE a_Block
-void cFallingBlock::Initialize(cWorld * a_World)
+bool cFallingBlock::Initialize(cWorld * a_World)
{
- super::Initialize(a_World);
- a_World->BroadcastSpawnEntity(*this);
+ if (super::Initialize(a_World))
+ {
+ a_World->BroadcastSpawnEntity(*this);
+ return true;
+ }
+ return false;
}