diff --git a/lib/remote/zone.cpp b/lib/remote/zone.cpp index ea6e007bd..eddc3aa67 100644 --- a/lib/remote/zone.cpp +++ b/lib/remote/zone.cpp @@ -33,6 +33,9 @@ void Zone::OnAllConfigLoaded() m_Parent = Zone::GetByName(GetParentRaw()); + if (m_Parent && m_Parent->IsGlobal()) + BOOST_THROW_EXCEPTION(ScriptError("Zone '" + GetName() + "' can not have a global zone as parent.", GetDebugInfo())); + Zone::Ptr zone = m_Parent; int levels = 0;