summaryrefslogtreecommitdiff
path: root/src/pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipe.c')
-rw-r--r--src/pipe.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pipe.c b/src/pipe.c
index 2a85667..eedfdc5 100644
--- a/src/pipe.c
+++ b/src/pipe.c
@@ -171,8 +171,13 @@ void eventConflictShotWithPipe(list_t *listPipe, list_t *listShot)
if( ( thisPipe = isConflictWithListPipe(listPipe, thisShot->x, thisShot->y,
thisShot->w, thisShot->h) ) != NULL )
{
- if( thisShot->author->bonus == BONUS_GHOST &&
- thisShot->author->bonus_time > 0 )
+ tux_t *author;
+
+ author = getTuxID(getCurrentArena()->listTux, thisShot->author_id);
+
+ if( author != NULL &&
+ author->bonus == BONUS_GHOST &&
+ author->bonus_time > 0 )
{
continue;
}