[MIRROR] Fixes null modes being picked (#2802)
* Fixes null modes being picked * Fixes null modes being picked
This commit is contained in:
committed by
Poojawa
parent
d96f3f40a5
commit
1cca85a58e
@@ -166,6 +166,8 @@ SUBSYSTEM_DEF(ticker)
|
||||
to_chat(world, "<B>Unable to choose playable game mode.</B> Reverting to pre-game lobby.")
|
||||
return 0
|
||||
mode = pickweight(runnable_modes)
|
||||
if(!mode) //too few roundtypes all run too recently
|
||||
mode = pick(runnable_modes)
|
||||
|
||||
else
|
||||
mode = config.pick_mode(GLOB.master_mode)
|
||||
|
||||
Reference in New Issue
Block a user