Fix possible NULL pointer access in MobV2CAO

stable-0.3
Perttu Ahola 2011-10-18 00:41:02 +03:00
parent 78f4142f4f
commit 6ce0c61dc0
1 changed files with 2 additions and 0 deletions

View File

@ -993,6 +993,8 @@ void MobV2CAO::updateNodePos()
void MobV2CAO::step(float dtime, ClientEnvironment *env) void MobV2CAO::step(float dtime, ClientEnvironment *env)
{ {
scene::MyBillboardSceneNode *bill = m_node; scene::MyBillboardSceneNode *bill = m_node;
if(!bill)
return;
pos_translator.translate(dtime); pos_translator.translate(dtime);