summaryrefslogtreecommitdiffstats
path: root/source/Pickup.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Pickup.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/Pickup.cpp b/source/Pickup.cpp
index 36322bcfb..217af969c 100644
--- a/source/Pickup.cpp
+++ b/source/Pickup.cpp
@@ -41,10 +41,14 @@ cPickup::cPickup(int a_MicroPosX, int a_MicroPosY, int a_MicroPosZ, const cItem
-void cPickup::Initialize(cWorld * a_World)
+bool cPickup::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;
}