From 2f32046bbf6151c58937356c38dd8b5c3ea55b2a Mon Sep 17 00:00:00 2001 From: cib Date: Wed, 23 May 2012 21:51:46 +0200 Subject: [PATCH] Fixed a problem with meme gamemode setup. --- code/game/gamemodes/meme/meme.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/game/gamemodes/meme/meme.dm b/code/game/gamemodes/meme/meme.dm index a98bc524441..6b91dc6e4ed 100644 --- a/code/game/gamemodes/meme/meme.dm +++ b/code/game/gamemodes/meme/meme.dm @@ -88,13 +88,16 @@ // get the host for this meme var/datum/mind/first_host = assigned_hosts[meme.key] + // this is a redundant check, but I don't think the above works.. + // if picking hosts works with this method, remove the method above + if(!first_host) + first_host = pick(first_hosts) + first_hosts.remove(first_host) M.enter_host(first_host.current) forge_meme_objectives(meme, first_host) del original - break - log_admin("Created [memes.len] memes.") spawn (rand(waittime_l, waittime_h))