mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
parenthesize a couple of casts. fixes the mvd recording crash
*taniwha dons his brown paper bag
This commit is contained in:
parent
a580c22a36
commit
cd8486accc
1 changed files with 2 additions and 2 deletions
|
@ -198,7 +198,7 @@ SV_DemoWriteToDisk (int type, int to, float time)
|
|||
demobuffer->start += size + header;
|
||||
}
|
||||
// move along
|
||||
p = (header_t *) p->data + size;
|
||||
p = (header_t *) (p->data + size);
|
||||
}
|
||||
|
||||
if (demobuffer->start == demobuffer->last) {
|
||||
|
@ -423,7 +423,7 @@ DemoSetBuf (byte type, int to)
|
|||
return;
|
||||
}
|
||||
|
||||
p = (header_t *) p->data + p->size;
|
||||
p = (header_t *) (p->data + p->size);
|
||||
}
|
||||
// type && to not exist in the buf, so add it
|
||||
|
||||
|
|
Loading…
Reference in a new issue