From: Christian Heller Date: Wed, 26 Aug 2015 03:07:53 +0000 (+0200) Subject: Fix save_world() bug. X-Git-Tag: tce~316 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%22https:/validator.w3.org/todo?a=commitdiff_plain;h=bfff0b6dfed59009ecf7b0ed2f9dabf3aac6f0a7;p=plomrogue Fix save_world() bug. --- diff --git a/roguelike-server b/roguelike-server index b9eb86b..adba9bc 100755 --- a/roguelike-server +++ b/roguelike-server @@ -222,7 +222,7 @@ def save_world(): for id in sorted(world_db["Things"].keys()): if [] != world_db["Things"][id]["T_CARRIES"]: string = string + "T_ID " + str(id) + "\n" - for carried in sorted(world_db["Things"][id]["T_CARRIES"].keys()): + for carried in sorted(world_db["Things"][id]["T_CARRIES"]): string = string + "T_CARRIES " + str(carried) + "\n" string = string + "SEED_RANDOMNESS " + str(rand.seed) + "\n" + \ "WORLD_ACTIVE " + str(world_db["WORLD_ACTIVE"])