projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5f632e
)
Haywire: Fix a null-pointer dereference when Haywire gets hit by an iceblock.
author
Florian Forster
<supertux@octo.it>
Tue, 2 Mar 2010 19:02:32 +0000
(19:02 +0000)
committer
Florian Forster
<supertux@octo.it>
Tue, 2 Mar 2010 19:02:32 +0000
(19:02 +0000)
SVN-Revision: 6520
src/badguy/haywire.cpp
patch
|
blob
|
history
diff --git
a/src/badguy/haywire.cpp
b/src/badguy/haywire.cpp
index
a99cb3b
..
2252515
100644
(file)
--- a/
src/badguy/haywire.cpp
+++ b/
src/badguy/haywire.cpp
@@
-90,7
+90,8
@@
Haywire::collision_squished(GameObject& object)
}
if (is_stunned) {
- player->bounce (*this);
+ if (player)
+ player->bounce (*this);
return true;
}
@@
-106,7
+107,9
@@
Haywire::collision_squished(GameObject& object)
time_stunned = TIME_STUNNED;
is_stunned = true;
- player->bounce (*this);
+ if (player)
+ player->bounce (*this);
+
return true;
}