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);