check vroom parameter

This commit is contained in:
p.kosyh 2010-07-15 10:53:59 +00:00
parent cbb22da53e
commit 5be32df7a2

View file

@ -2155,6 +2155,9 @@ function isVroom(v)
end
function vroom(name, w)
if w == nil then
error("Wrong parameter to vroom.", 2);
end
return room { vroom_type = true, nam = name, where = deref(w), enter = vroom_enter, save = vroom_save, };
end