aboutsummaryrefslogtreecommitdiff
path: root/party.c
diff options
context:
space:
mode:
Diffstat (limited to 'party.c')
-rw-r--r--party.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/party.c b/party.c
index 1360875..be0f4ed 100644
--- a/party.c
+++ b/party.c
@@ -117,7 +117,7 @@ playerq_del(Playerq *pq, Player *p)
return;
}
- for(np = pq->head; np->next != nil; np = np->next)
+ for(np = pq->head; np != nil && np->next != nil; np = np->next)
if(np->next == p){
np->next = np->next->next;
p->next = nil;