diff options
author | Justin Clark-Casey (justincc) | 2011-12-14 16:43:49 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-12-14 16:43:49 +0000 |
commit | 84023c8162b5736ba2e9d492c5a569bb71eb255b (patch) | |
tree | 27fc98e3a42d2433b6d74c2433c989561fa189ea /OpenSim/Tools/pCampBot/Behaviours/GrabbingBehaviour.cs | |
parent | In AvatarFactoryModule.SetApperance(), perform ValidateBakedTextureCache() in... (diff) | |
download | opensim-SC_OLD-84023c8162b5736ba2e9d492c5a569bb71eb255b.zip opensim-SC_OLD-84023c8162b5736ba2e9d492c5a569bb71eb255b.tar.gz opensim-SC_OLD-84023c8162b5736ba2e9d492c5a569bb71eb255b.tar.bz2 opensim-SC_OLD-84023c8162b5736ba2e9d492c5a569bb71eb255b.tar.xz |
Fix off by one bug in objects GrabbingBehaviour of pCampBot.exe
Also fix usage message.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tools/pCampBot/Behaviours/GrabbingBehaviour.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/Behaviours/GrabbingBehaviour.cs b/OpenSim/Tools/pCampBot/Behaviours/GrabbingBehaviour.cs index 6ad02b2..701881e 100644 --- a/OpenSim/Tools/pCampBot/Behaviours/GrabbingBehaviour.cs +++ b/OpenSim/Tools/pCampBot/Behaviours/GrabbingBehaviour.cs | |||
@@ -47,7 +47,7 @@ namespace pCampBot | |||
47 | { | 47 | { |
48 | Dictionary<UUID, Primitive> objects = Bot.Objects; | 48 | Dictionary<UUID, Primitive> objects = Bot.Objects; |
49 | 49 | ||
50 | Primitive prim = objects.ElementAt(Bot.Random.Next(0, objects.Count)).Value; | 50 | Primitive prim = objects.ElementAt(Bot.Random.Next(0, objects.Count - 1)).Value; |
51 | 51 | ||
52 | // This appears to be a typical message sent when a viewer user clicks a clickable object | 52 | // This appears to be a typical message sent when a viewer user clicks a clickable object |
53 | Bot.Client.Self.Grab(prim.LocalID); | 53 | Bot.Client.Self.Grab(prim.LocalID); |