Fix some of the things clang --analyze flagged

This commit is contained in:
Tim Angus committed 2013-03-26 16:50:03 +00:00
1 parent 352cd151e0
commit 98360bcd57
34 files changed
+58 -112

No files matched your search

+6 -2
View File
@@ -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;
}
}