diff --git a/lib/remote/zone.cpp b/lib/remote/zone.cpp index df9856448..adf140df8 100644 --- a/lib/remote/zone.cpp +++ b/lib/remote/zone.cpp @@ -51,7 +51,7 @@ bool Zone::CanAccessObject(const DynamicObject::Ptr& object) const if (dynamic_pointer_cast(object)) object_zone = static_pointer_cast(object); else - Zone::GetByName(object->GetZone()); + object_zone = Zone::GetByName(object->GetZone()); if (!object_zone) object_zone = Zone::GetLocalZone();