summaryrefslogtreecommitdiffstats
path: root/source/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Player.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/Player.cpp b/source/Player.cpp
index bbf39f789..ae119a1fb 100644
--- a/source/Player.cpp
+++ b/source/Player.cpp
@@ -121,10 +121,14 @@ cPlayer::~cPlayer(void)
-void cPlayer::Initialize(cWorld * a_World)
+bool cPlayer::Initialize(cWorld * a_World)
{
- super::Initialize(a_World);
- GetWorld()->AddPlayer(this);
+ if (super::Initialize(a_World))
+ {
+ GetWorld()->AddPlayer(this);
+ return true;
+ }
+ return false;
}