Fix some of the things clang --analyze flagged
This commit is contained in:
parent
352cd151e0
commit
98360bcd57
34 changed files with 58 additions and 112 deletions
|
@ -650,8 +650,12 @@ void CM_TraceThroughBrush( traceWork_t *tw, cbrush_t *brush ) {
|
|||
enterFrac = 0;
|
||||
}
|
||||
tw->trace.fraction = enterFrac;
|
||||
tw->trace.plane = *clipplane;
|
||||
tw->trace.surfaceFlags = leadside->surfaceFlags;
|
||||
if (clipplane != NULL) {
|
||||
tw->trace.plane = *clipplane;
|
||||
}
|
||||
if (leadside != NULL) {
|
||||
tw->trace.surfaceFlags = leadside->surfaceFlags;
|
||||
}
|
||||
tw->trace.contents = brush->contents;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue