Fix missing variable assignment in Zone::CanAccessObject().

Refs #6107
This commit is contained in:
Gunnar Beutner 2014-05-08 13:29:53 +02:00
parent 5678fe750c
commit b52cc9822d
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ bool Zone::CanAccessObject(const DynamicObject::Ptr& object) const
if (dynamic_pointer_cast<Zone>(object))
object_zone = static_pointer_cast<Zone>(object);
else
Zone::GetByName(object->GetZone());
object_zone = Zone::GetByName(object->GetZone());
if (!object_zone)
object_zone = Zone::GetLocalZone();