Getting an assertion failure when the last number in this statement is a float/double, but not if it's an int (the only difference is the period after the ‘2’). m_NewGhostOffset
is an intlastLoadedGhostRaceTime
is a uintMath::Clamp(x, min, max)
is an overloaded function that takes either all ints or all floats
fails:m_NewGhostOffset = Math::Clamp(m_NewGhostOffset, 0, lastLoadedGhostRaceTime == 0 ? 9999999 : lastLoadedGhostRaceTime * 2.);
works:m_NewGhostOffset = Math::Clamp(m_NewGhostOffset, 0, lastLoadedGhostRaceTime == 0 ? 9999999 : lastLoadedGhostRaceTime * 2);
![](https://uploads.gamedev.net/forums/monthly_2023_10/6c4f75560c4641e5a96ba8c208cc951d.image.png)