From 3bb76b6b5feeed8a303ae3302ccc6c320a250ccb Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 7 Dec 2016 09:31:19 +1000 Subject: [PATCH] Fix if the user downloads more than 999 bluewave packets --- bluewave.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bluewave.c b/bluewave.c index af57cc7..8f267e6 100644 --- a/bluewave.c +++ b/bluewave.c @@ -370,6 +370,9 @@ void bwave_create_packet() { unlink(buffer); unlink(archive); gUser->bwavepktno++; + if (gUser->bwavepktno > 999) { + gUser->bwavepktno = 0; + } save_user(gUser); }