fix in where

This commit is contained in:
p.kosyh 2010-07-21 10:30:42 +00:00
parent 13e35b90b0
commit da9a0c3c28

View file

@ -1974,7 +1974,7 @@ function me()
end
function where(s)
if not isObject(s) then error("Wrong parameter to where.", 2); end
if not isObject(ref(s)) then error("Wrong parameter to where.", 2); end
if isPlayer(ref(s)) then
return ref(ref(s).where);
end