summaryrefslogtreecommitdiff
path: root/src/peds
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-29 03:32:21 +0300
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-29 19:23:02 +0300
commitd52b917c549719addf45788413210ea1700cd0d5 (patch)
treefde2b07530985399054640435b638d00bbb4f10c /src/peds
parent3dfffdf35109c22f97fd1a1139ba4358d43fdc90 (diff)
Some regular fixes and UB fixes
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index a9529d2d..87e77ef3 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -1545,7 +1545,7 @@ CPed::ProcessBuoyancy(void)
CRGBA color(((0.5f * CTimeCycle::GetDirectionalRed() + CTimeCycle::GetAmbientRed()) * 127.5f),
((0.5f * CTimeCycle::GetDirectionalBlue() + CTimeCycle::GetAmbientBlue()) * 127.5f),
((0.5f * CTimeCycle::GetDirectionalGreen() + CTimeCycle::GetAmbientGreen()) * 127.5f),
- (CGeneral::GetRandomNumber() % 256 * 48.0f) + 48);
+ CGeneral::GetRandomNumberInRange(48.0f, 96.0f));
if (bInVehicle)
return;