Skip to content

Commit 247878f

Browse files
Update Core/GameEngine/Source/Common/RandomValue.cpp
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent a7d6fae commit 247878f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/GameEngine/Source/Common/RandomValue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ Real GetGameLogicRandomValueRealUnchanged( Real lo, Real hi, const char *file, i
342342
#endif
343343

344344
if (lo >= hi)
345-
return lo;
345+
return hi;
346346

347347
UnsignedInt seed[ARRAY_SIZE(theGameLogicSeed)];
348348
memcpy(&seed[0], &theGameLogicSeed[0], sizeof(seed));

0 commit comments

Comments
 (0)