fix in objects mod

This commit is contained in:
p.kosyh 2010-06-20 16:55:51 +00:00
parent 6a797565a2
commit b1b2270a9d

View file

@ -11,8 +11,9 @@ obj = inherit(obj, function(v)
end
return v
end)
room = inherit(room, function(v)
if v._enter then
if v.enter then
v.enter = hook(v.enter, function(f, s, from, ...)
return f(s, ref(from), unpack(arg))
end)