Fix if the user downloads more than 999 bluewave packets
This commit is contained in:
parent
087f4aec56
commit
3bb76b6b5f
@ -370,6 +370,9 @@ void bwave_create_packet() {
|
|||||||
unlink(buffer);
|
unlink(buffer);
|
||||||
unlink(archive);
|
unlink(archive);
|
||||||
gUser->bwavepktno++;
|
gUser->bwavepktno++;
|
||||||
|
if (gUser->bwavepktno > 999) {
|
||||||
|
gUser->bwavepktno = 0;
|
||||||
|
}
|
||||||
save_user(gUser);
|
save_user(gUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user