From 07d1c5e906187b34142d4119e0aafa884196c5f5 Mon Sep 17 00:00:00 2001
From: "p.kosyh"
Date: Tue, 27 Jul 2010 11:13:49 +0000
Subject: [PATCH] visited fix
---
stead/goto.lua | 3 +++
1 file changed, 3 insertions(+)
diff --git a/stead/goto.lua b/stead/goto.lua
index f504ae7..0d3d932 100644
--- a/stead/goto.lua
+++ b/stead/goto.lua
@@ -159,6 +159,9 @@ stead.goout = goout
function visited(w)
if not w then w = here() end
w = ref(w)
+ if w == nil then
+ return 0;
+ end
if not isRoom(w) then
error ("Wrong parameter to visited.", 2);
end