projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78f4142
)
Fix possible NULL pointer access in MobV2CAO
author
Perttu Ahola
<celeron55@gmail.com>
Mon, 17 Oct 2011 21:41:02 +0000
(
00:41
+0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Mon, 17 Oct 2011 21:41:02 +0000
(
00:41
+0300)
src/content_cao.cpp
patch
|
blob
|
history
diff --git
a/src/content_cao.cpp
b/src/content_cao.cpp
index b17c28109f356046e7c7a653a07f2ac0b7f986dd..67594eb9f9afdd48493eb70ebeadb76447215165 100644
(file)
--- 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);