From 185ad8edcbd506c6a38f3e922aaa6f6aaf108fb5 Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Fri, 12 Dec 2008 20:01:04 +0000 Subject: [PATCH] Add missing scene reference. Fixes a NRE. SimpleModule now works again (sort of). --- OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index d80f621e34..5a5d0e2a25 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs @@ -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;