diff --git a/stepmania/src/GameCommand.cpp b/stepmania/src/GameCommand.cpp index 1f4a1ea58f..b1780eb2f2 100644 --- a/stepmania/src/GameCommand.cpp +++ b/stepmania/src/GameCommand.cpp @@ -771,6 +771,7 @@ void GameCommand::ApplySelf( const vector &vpns ) const // Choose a percent for all scores. This is useful for testing unlocks // where some elements are unlocked at a certain percent complete float fPercentDP = randomf( 0.6f, 1.2f ); + CLAMP( fPercentDP, 0.0f, 1.0f ); Profile* pProfile = PROFILEMAN->GetMachineProfile();