Merge pull request #2822 from InspectorCaracal/fix-dest-overwrite

Fix DefaultExit overwriting prototype destination
This commit is contained in:
Griatch 2022-08-02 15:00:07 +02:00 committed by GitHub
commit a13997395b

View file

@ -2850,8 +2850,8 @@ class DefaultExit(DefaultObject):
)
)
# an exit should have a destination (this is replaced at creation time)
if self.location:
# an exit should have a destination - try to make sure it does
if self.location and not self.destination:
self.destination = self.location
def at_cmdset_get(self, **kwargs):