diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_buildable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index aeac1be6..cc5b4d37 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -3593,7 +3593,7 @@ void G_LayoutSelect( void ) "found, using map default\n" ); return; } - layoutNum = ( rand( ) & ( cnt - 1 ) ) + 1; + layoutNum = ( rand( ) % cnt ) + 1; cnt = 0; Q_strncpyz( layouts2, layouts, sizeof( layouts2 ) ); |