From 2789f391854a2d51e65d2131fdb4e2549c1a66bc Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Sun, 30 Nov 2025 14:08:30 +1300 Subject: [PATCH] UndoModelGeometry matching --- src/DETHRACE/common/piping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DETHRACE/common/piping.c b/src/DETHRACE/common/piping.c index 3a308780..eb9ec40b 100644 --- a/src/DETHRACE/common/piping.c +++ b/src/DETHRACE/common/piping.c @@ -1791,7 +1791,7 @@ void UndoModelGeometry(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 & 0x00ff);