Fix for #1364 - Wilderness.py exits created in wilderness aren't added to manifest

This commit is contained in:
BigJMoney 2017-07-16 17:48:15 -04:00
parent fce5dc3af6
commit 109b262b49

View file

@ -513,7 +513,7 @@ class WildernessRoom(DefaultRoom):
moved_obj (Object): The object moved into this one.
source_location (Object): Where `moved_obj` came from.
"""
if moved_obj.destination and moved_obj.destination == moved_obj.location:
if isinstance(moved_obj, WildernessExit):
# Ignore exits looping back to themselves: those are the regular
# n, ne, ... exits.
return