diff --git a/items.lua b/items.lua --- a/items.lua +++ b/items.lua @@ -311,11 +311,11 @@ item_lamp = obj { if (here().nolamp) then return "Здесь не стоит зажигать лампу. "; end; - if (pl.has_light) then - pl.has_light = false; + if (me().has_light) then + me().has_light = false; return "Вы гасите свет. "; else - pl.has_light = true; + me().has_light = true; return "Вы зажигаете лампу. "; end; end;