summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 0c460ba40..b5a683927 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -1794,6 +1794,8 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing,
const int dx, const int dy,
const int id)
{
+ if (!srcBeing)
+ return nullptr;
Being *const dstBeing = actorManager->createBeing(fromInt(
toInt(srcBeing->getId(), int) + id, BeingId),
ActorType::Player,