From e3571510aec069ec979dd01442ce985f910bfaca Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Mon, 5 Oct 2020 17:40:44 +0200 Subject: Fix build on clang --- src/vehicles/Vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index 2e790e81..79e27c00 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -2135,7 +2135,7 @@ CVehicle::HeliDustGenerate(CEntity *heli, float radius, float ground, int rnd) r = clamp(red, 0.0f, 255.0f); g = clamp(green, 0.0f, 255.0f); b = clamp(blue, 0.0f, 255.0f); - RwRGBA col1 = { r, g, b, CGeneral::GetRandomNumberInRange(8, 32) }; + RwRGBA col1 = { r, g, b, (RwUInt8)CGeneral::GetRandomNumberInRange(8, 32) }; RwRGBA col2 = { 255, 255, 255, 32 }; if(n&1) -- cgit v1.2.3