diff --git a/src/DETHRACE/common/piping.c b/src/DETHRACE/common/piping.c index 375e0b91..0c65b60d 100644 --- a/src/DETHRACE/common/piping.c +++ b/src/DETHRACE/common/piping.c @@ -1255,7 +1255,7 @@ void ApplyModelGeometry(tPipe_chunk** pChunk) { br_model* model_ptr; tCar_spec* car; - if (((*pChunk)->subject_index & 0xff00) == 0) { + if (((*pChunk)->subject_index >> 8) == 0) { car = &gProgram_state.current_car; } else { car = GetCarSpec((*pChunk)->subject_index >> 8, (*pChunk)->subject_index & 0xff);