mirror of
https://github.com/OpenSim-NGC/OpenSim-Sasquatch.git
synced 2024-11-21 14:29:10 -07:00
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:
parent
bb19c868c7
commit
0281a9f87b
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue