aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-10-18 00:41:02 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-10-18 00:41:02 +0300
commit6ce0c61dc0001f5eba265bbf3463ae9b38d310b9 (patch)
treefe8888c69bcd85a5528c3bb9d414b21e0f64556e
parent78f4142f4ff033351030a2008f76c6bf8768780c (diff)
downloadminetest-6ce0c61dc0001f5eba265bbf3463ae9b38d310b9.tar.gz
minetest-6ce0c61dc0001f5eba265bbf3463ae9b38d310b9.tar.bz2
minetest-6ce0c61dc0001f5eba265bbf3463ae9b38d310b9.zip
Fix possible NULL pointer access in MobV2CAO
-rw-r--r--src/content_cao.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index b17c28109..67594eb9f 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -993,6 +993,8 @@ void MobV2CAO::updateNodePos()
void MobV2CAO::step(float dtime, ClientEnvironment *env)
{
scene::MyBillboardSceneNode *bill = m_node;
+ if(!bill)
+ return;
pos_translator.translate(dtime);