Fix Course::GetCourseInfo crashes

This commit is contained in:
Glenn Maynard
2003-08-03 04:47:53 +00:00
parent b198dcee90
commit e78ad5e491
+1 -1
View File
@@ -35,7 +35,7 @@ RandomGen::RandomGen( unsigned long seed_ )
int RandomGen::operator() ( int maximum )
{
seed = 1664525L * seed + 1013904223L;
return (seed >> 2) % (maximum + 1);
return (seed >> 2) % maximum;
}