summaryrefslogtreecommitdiff
path: root/src/tux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tux.c')
-rw-r--r--src/tux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tux.c b/src/tux.c
index 0243ee3..c8b80cc 100644
--- a/src/tux.c
+++ b/src/tux.c
@@ -395,7 +395,10 @@ void eventTuxIsDead(tux_t *tux)
static void eventTuxIsDeadWIthShot(tux_t *tux, shot_t *shot)
{
- shot->author->score++;
+ if( shot->author != NULL && shot->author != tux )
+ {
+ shot->author->score++;
+ }
if( getNetTypeGame() == NET_GAME_TYPE_SERVER )
{