diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs index 37422d7..dd45406 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | |||
@@ -61,19 +61,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
61 | 61 | ||
62 | public SensorInfo Clone() | 62 | public SensorInfo Clone() |
63 | { | 63 | { |
64 | SensorInfo s = new SensorInfo(); | 64 | return (SensorInfo)this.MemberwiseClone(); |
65 | s.localID = localID; | ||
66 | s.itemID = itemID; | ||
67 | s.interval = interval; | ||
68 | s.next = next; | ||
69 | s.name = name; | ||
70 | s.keyID = keyID; | ||
71 | s.type = type; | ||
72 | s.range = range; | ||
73 | s.arc = arc; | ||
74 | s.host = host; | ||
75 | |||
76 | return s; | ||
77 | } | 65 | } |
78 | } | 66 | } |
79 | 67 | ||
@@ -701,8 +689,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
701 | 689 | ||
702 | lock (SenseRepeatListLock) | 690 | lock (SenseRepeatListLock) |
703 | { | 691 | { |
704 | foreach (SensorInfo si in SenseRepeaters) | 692 | foreach (SensorInfo i in SenseRepeaters) |
705 | retList.Add(si.Clone()); | 693 | retList.Add(i.Clone()); |
706 | } | 694 | } |
707 | 695 | ||
708 | return retList; | 696 | return retList; |