From: Perttu Ahola Date: Mon, 17 Oct 2011 21:41:02 +0000 (+0300) Subject: Fix possible NULL pointer access in MobV2CAO X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=6ce0c61dc0001f5eba265bbf3463ae9b38d310b9;p=zefram%2Fminetest%2Fminetest_engine.git Fix possible NULL pointer access in MobV2CAO --- diff --git a/src/content_cao.cpp b/src/content_cao.cpp index b17c2810..67594eb9 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);