parenthesize a couple of casts. fixes the mvd recording crash

*taniwha dons his brown paper bag
This commit is contained in:
Bill Currie 2004-04-06 04:04:39 +00:00
parent a580c22a36
commit cd8486accc

View file

@ -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