[MIRROR] Fixes null modes being picked (#2802)

* Fixes null modes being picked

* Fixes null modes being picked
This commit is contained in:
CitadelStationBot
2017-09-17 11:58:33 -05:00
committed by Poojawa
parent d96f3f40a5
commit 1cca85a58e
+2
View File
@@ -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)