mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
Sign extend the size read from the download packet.
This fixes qw-client "hanging" on a missing download file. Hopefully fixes the OpenBSD crash, too.
This commit is contained in:
parent
af16a29bfb
commit
0e76e1b9bf
1 changed files with 1 additions and 1 deletions
|
@ -566,7 +566,7 @@ CL_ParseDownload (void)
|
|||
int size, percent;
|
||||
|
||||
// read the data
|
||||
size = MSG_ReadShort (net_message);
|
||||
size = (short) MSG_ReadShort (net_message);
|
||||
percent = MSG_ReadByte (net_message);
|
||||
|
||||
if (cls.demoplayback) {
|
||||
|
|
Loading…
Reference in a new issue