aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cObjectHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cObjectHandler.cpp b/src/cObjectHandler.cpp
index da0dcc9..02dd115 100644
--- a/src/cObjectHandler.cpp
+++ b/src/cObjectHandler.cpp
@@ -50,7 +50,7 @@ int cObjectHandler::moveObject(unsigned int _object, sPos _pos, int _mode)
{
for(unsigned int i = 0; i < coll.idc; i++)
{
- if(coll.idv[i] != _object)
+ if(coll.idv[i] != _object && objects[coll.idv[i]])
abort += objects[_object]->onCollisionActive(_pos, objects[coll.idv[i]]->onCollisionPassive(_pos));
}
}