From 6ce0c61dc0001f5eba265bbf3463ae9b38d310b9 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 18 Oct 2011 00:41:02 +0300 Subject: [PATCH] Fix possible NULL pointer access in MobV2CAO --- src/content_cao.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);