diff --git a/src/g_game.c b/src/g_game.c index c88cca879..2047262e1 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -4066,7 +4066,7 @@ void G_MapIntoRoundQueue(UINT16 map, UINT8 setgametype, boolean setencore, boole void G_GPCupIntoRoundQueue(cupheader_t *cup, UINT8 setgametype, boolean setencore) { UINT8 i, levelindex = 0, bonusindex = 0; - UINT8 bonusmodulo = (cup->numlevels+1)/(cup->numbonus+1); + UINT8 bonusmodulo = max(1, (cup->numlevels+1)/(cup->numbonus+1)); UINT16 cupLevelNum; // Levels are added to the queue in the following pattern.