Fix Zone::IsGlobal()

This commit is contained in:
Michael Friedrich 2014-11-08 22:57:09 +01:00
parent 020bd060c5
commit a362b5c14c

View File

@ -83,12 +83,7 @@ bool Zone::IsChildOf(const Zone::Ptr& zone)
bool Zone::IsGlobal(void) bool Zone::IsGlobal(void)
{ {
Zone::Ptr zone = GetSelf(); return GetGlobal();
if (!zone)
return false;
return zone->GetGlobal();
} }
Zone::Ptr Zone::GetLocalZone(void) Zone::Ptr Zone::GetLocalZone(void)