mirror of
https://github.com/opensim/opensim.git
synced 2026-07-06 20:45:45 +08:00
!= UUID.Zero is slow
This commit is contained in:
@@ -172,7 +172,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
|
||||
if (instance.ScriptTask != null)
|
||||
{
|
||||
if (instance.ScriptTask.PermsMask != 0 && instance.ScriptTask.PermsGranter != UUID.Zero)
|
||||
if (instance.ScriptTask.PermsMask != 0 && !instance.ScriptTask.PermsGranter.IsZero())
|
||||
{
|
||||
XmlNode permissions = xmldoc.CreateElement("", "Permissions", "");
|
||||
XmlAttribute granter = xmldoc.CreateAttribute("", "granter", "");
|
||||
@@ -369,7 +369,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
{
|
||||
UUID granter = new UUID();
|
||||
UUID.TryParse(tmpPerm, out granter);
|
||||
if (granter != UUID.Zero)
|
||||
if (!granter.IsZero())
|
||||
{
|
||||
instance.ScriptTask.PermsMask = mask;
|
||||
instance.ScriptTask.PermsGranter = granter;
|
||||
|
||||
Reference in New Issue
Block a user