From 0cae40f41a06a872995a84062f4c0d4003c8a244 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 26 Apr 2014 05:46:52 +0200 Subject: [PATCH] Made DEFALT_HOME a fallback for a missing START_LOCATION in unloggedin-create. --- src/commands/default/unloggedin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/default/unloggedin.py b/src/commands/default/unloggedin.py index b2bb73d645..a6cb7299ac 100644 --- a/src/commands/default/unloggedin.py +++ b/src/commands/default/unloggedin.py @@ -190,7 +190,10 @@ class CmdUnconnectedCreate(MuxCommand): if MULTISESSION_MODE < 2: # if we only allow one character, create one with the same name as Player # (in mode 2, the character must be created manually once logging in) - start_location = settings.START_LOCATION + start_location = ObjectDB.objects.get_id(settings.START_LOCATION) + if not start_location: + start_location = default_home # fallback + new_character = create.create_object(typeclass, key=playername, location=start_location, home=default_home, permissions=permissions)