avoid potential div/0

This commit is contained in:
Glenn Maynard
2003-06-29 19:28:55 +00:00
parent 229045627b
commit 684f159ed3
+1 -1
View File
@@ -55,7 +55,7 @@ Grade StageStats::GetGrade( PlayerNumber pn )
{
ASSERT( GAMESTATE->IsPlayerEnabled(pn) ); // should be calling this is player isn't joined!
if( bFailed[pn] )
if( bFailed[pn] || !iPossibleDancePoints[pn] )
return GRADE_E;
/* Based on the percentage of your total "Dance Points" to the maximum