Fixed bug in destroy command; cleaned up @dig a bit.

This commit is contained in:
Griatch 2009-10-22 14:30:57 +00:00
parent 9b6bd7125f
commit 557c4eb07b
3 changed files with 35 additions and 28 deletions

View file

@ -569,12 +569,12 @@ class Object(models.Model):
for obj in objs:
home = obj.get_home()
text = "object"
if obj.is_player():
text = "player"
# Obviously, we can't send it back to here.
if home.id == self.id:
if home and home.id == self.id:
obj.home = default_home
obj.save()
home = default_home