aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
index 94349f6..775dc91 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
@@ -44,6 +44,9 @@ namespace OpenSim.Region.OptionalModules.World.NPC
44 public UUID CreateNPC(string firstname, string lastname,Vector3 position, Scene scene, UUID cloneAppearanceFrom) 44 public UUID CreateNPC(string firstname, string lastname,Vector3 position, Scene scene, UUID cloneAppearanceFrom)
45 { 45 {
46 NPCAvatar npcAvatar = new NPCAvatar(firstname, lastname, position, scene); 46 NPCAvatar npcAvatar = new NPCAvatar(firstname, lastname, position, scene);
47 npcAvatar.CircuitCode = (uint) Util.RandomClass.Next(0, int.MaxValue);
48
49 scene.ClientManager.Add(npcAvatar.CircuitCode, npcAvatar);
47 scene.AddNewClient(npcAvatar); 50 scene.AddNewClient(npcAvatar);
48 51
49 ScenePresence sp; 52 ScenePresence sp;