diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-26 00:41:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-26 00:41:35 +0300 |
commit | 5344dc6cd9156a9b67da834c9b5b4be00a62992a (patch) | |
tree | e71a20fbc231ccec6e53a718758eea447cfc7069 /src/actormanager.cpp | |
parent | 02822f84a25b261f02f5928a6cbefe103cd9491e (diff) | |
download | plus-5344dc6cd9156a9b67da834c9b5b4be00a62992a.tar.gz plus-5344dc6cd9156a9b67da834c9b5b4be00a62992a.tar.bz2 plus-5344dc6cd9156a9b67da834c9b5b4be00a62992a.tar.xz plus-5344dc6cd9156a9b67da834c9b5b4be00a62992a.zip |
Add missing checks into other files.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r-- | src/actormanager.cpp | 2 |
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, |