From c3f8b292186f0b729fbd2acdca358e74077c8e64 Mon Sep 17 00:00:00 2001 From: Xenius97 Date: Sat, 29 Nov 2025 12:52:35 +0100 Subject: [PATCH] Fix `getVehiclePaintjob` returning -1 when the game engine hasn't applied a paintjob yet during stream-in Fixes #2227 --- Client/mods/deathmatch/logic/CClientVehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/mods/deathmatch/logic/CClientVehicle.cpp b/Client/mods/deathmatch/logic/CClientVehicle.cpp index e47c40e2e5e..a892924d6e4 100644 --- a/Client/mods/deathmatch/logic/CClientVehicle.cpp +++ b/Client/mods/deathmatch/logic/CClientVehicle.cpp @@ -3463,7 +3463,7 @@ unsigned char CClientVehicle::GetPaintjob() if (m_pVehicle) { int iRemap = m_pVehicle->GetRemapIndex(); - return (iRemap == -1) ? 3 : iRemap; + return (iRemap == -1) ? m_ucPaintjob : iRemap; } return m_ucPaintjob;