From f3238781cc5893988016150f260562a76224ed3b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 10 Feb 2020 02:19:35 +0000 Subject: [PATCH] oops --- OpenSim/Framework/SLUtil.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenSim/Framework/SLUtil.cs b/OpenSim/Framework/SLUtil.cs index e626f434b2..33e40e6969 100644 --- a/OpenSim/Framework/SLUtil.cs +++ b/OpenSim/Framework/SLUtil.cs @@ -457,7 +457,7 @@ namespace OpenSim.Framework indx = getField(note, indx, "asset_id", false, out valuestr); if (indx < 0) { - indx = getField(note, indx, "shadow_id", false, out valuestr); + indx = getField(note, curindx, "shadow_id", false, out valuestr); if (indx < 0) return null; if (!UUID.TryParse(valuestr, out assetID)) @@ -570,10 +570,12 @@ namespace OpenSim.Framework indx = note.IndexOf('}',indx); // skip to end of permissions if (indx < 0) return null; + + int curindx = indx; indx = getField(note, indx, "asset_id", false, out valuestr); if (indx < 0) { - indx = getField(note, indx, "shadow_id", false, out valuestr); + indx = getField(note, curindx, "shadow_id", false, out valuestr); if (indx < 0) return null; if (!UUID.TryParse(valuestr, out assetID))