Add missing scene reference. Fixes a NRE. SimpleModule now works again (sort of).

0.6.1-post-fixes
Homer Horwitz 2008-12-12 20:01:04 +00:00
parent 66791c90e4
commit 185ad8edcb
1 changed files with 2 additions and 1 deletions

View File

@ -250,7 +250,7 @@ namespace OpenSim.Region.Examples.SimpleModule
m_scene.EventManager.OnFrame += Update;
}
private Vector3 startPos = new Vector3(128, 128, 2);
private Vector3 startPos = new Vector3(128, 128, 30);
public virtual Vector3 StartPos
{
@ -732,6 +732,7 @@ namespace OpenSim.Region.Examples.SimpleModule
args.Message = "Hey You! Get out of my Home. This is my Region";
args.Channel = 0;
args.From = FirstName + " " + LastName;
args.Scene = m_scene;
args.Position = new Vector3(128, 128, 26);
args.Sender = this;
args.Type = ChatTypeEnum.Shout;