diff options
Diffstat (limited to 'src/teleport.c')
| -rw-r--r-- | src/teleport.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/teleport.c b/src/teleport.c index 6348c57..e402fcc 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -153,8 +153,13 @@ void eventConflictShotWithTeleport(list_t *listTeleport, list_t *listShot) if( ( thisTeleport = isConflictWithListTeleport(listTeleport, 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; } |