reduce potencial useless string casts from list items

This commit is contained in:
UbitUmarov
2023-03-15 09:06:59 +00:00
parent 5ad710c8df
commit bf90a8d1c5
4 changed files with 63 additions and 20 deletions

View File

@@ -559,7 +559,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
idx++;
try
{
wl.normalMapTexture = new UUID(rules.GetLSLStringItem(idx).m_string);
wl.normalMapTexture = new UUID(rules.GetStrictStringItem(idx));
}
catch (ArgumentException)
{