summary refs log tree commit diff stats
path: root/Classes/GameModeInfo.m
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/GameModeInfo.m')
-rw-r--r--Classes/GameModeInfo.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Classes/GameModeInfo.m b/Classes/GameModeInfo.m index 08b95e5..91543fa 100644 --- a/Classes/GameModeInfo.m +++ b/Classes/GameModeInfo.m
@@ -34,6 +34,11 @@
34 unlocked = m_unlocked; 34 unlocked = m_unlocked;
35 } 35 }
36 36
37 if (numOfStars > 3)
38 {
39 @throw [NSException exceptionWithName:NSInvalidArgumentException reason:@"There does not exist support for more than three stars in a game mode." userInfo:nil];
40 }
41
37 stars = (BOOL*) calloc(numOfStars, sizeof(BOOL)); 42 stars = (BOOL*) calloc(numOfStars, sizeof(BOOL));
38 for (int i=0; i<numOfStars; i++) 43 for (int i=0; i<numOfStars; i++)
39 { 44 {