Skip to content

Commit 067c51e

Browse files
committed
fix test failures from last merge
1 parent 2c45be0 commit 067c51e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

common/decompile.cc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,10 @@ static std::vector<compiled_brush_t> DecompileLeafTaskGeometryOnly(
946946
brush.source = task.brush;
947947
brush.brush_offset = brush_offset;
948948

949-
int native_contents = task.brush->contents;
949+
int native_contents = 0;
950+
if (task.brush) {
951+
native_contents = task.brush->contents;
952+
}
950953

951954
if (bsp->loadversion->game->id == GAME_SIN) {
952955
// SiN cleanup
@@ -1020,7 +1023,10 @@ static std::vector<compiled_brush_t> DecompileLeafTask(const mbsp_t *bsp, const
10201023
brush.source = task.brush;
10211024
brush.brush_offset = brush_offset;
10221025

1023-
int native_contents = task.brush->contents;
1026+
int native_contents = 0;
1027+
if (task.brush) {
1028+
native_contents = task.brush->contents;
1029+
}
10241030

10251031
if (bsp->loadversion->game->id == GAME_SIN) {
10261032
// SiN cleanup

0 commit comments

Comments
 (0)