Fix for the script reset that was occuring exactly once on region startup. If you are loading script state from a region that was not previously running experiences a variable would be null and the null needed to be tested for when parsing a UUID. After this initial load the experience entry is saved and exists on future restarts. Also bumped the version number to 9037

This commit is contained in:
Mike Dickson 2024-09-28 16:09:04 -04:00
parent bb19c868c7
commit 0281a9f87b
2 changed files with 3 additions and 2 deletions

View file

@ -39,7 +39,7 @@ namespace OpenSim
{
public const string VersionNumber = "0.9.3";
public const string AssemblyVersionNumber = "0.9.3";
public const string Release = "9032";
public const string Release = "9037";
public static string Version
{

View file

@ -545,7 +545,8 @@ namespace OpenSim.Region.ScriptEngine.Yengine
}
XmlElement experienceKey = (XmlElement)scriptStateN.SelectSingleNode("ExperienceKey");
m_Item.ExperienceID = UUID.Parse(experienceKey.InnerText);
if (experienceKey is not null)
m_Item.ExperienceID = UUID.Parse(experienceKey.InnerText);
XmlElement permissionsN = (XmlElement)scriptStateN.SelectSingleNode("Permissions");
m_Item.PermsGranter = new UUID(permissionsN.GetAttribute("granter"));