Fix if the user downloads more than 999 bluewave packets

This commit is contained in:
Andrew Pamment 2016-12-07 09:31:19 +10:00
parent 087f4aec56
commit 3bb76b6b5f

View File

@ -370,6 +370,9 @@ void bwave_create_packet() {
unlink(buffer);
unlink(archive);
gUser->bwavepktno++;
if (gUser->bwavepktno > 999) {
gUser->bwavepktno = 0;
}
save_user(gUser);
}