Fix indexer to spawnpoints

integration
BlueWall 2012-05-13 13:07:44 -04:00
parent 2b5e05fad8
commit d3a88263cb
1 changed files with 1 additions and 1 deletions

View File

@ -3571,7 +3571,7 @@ namespace OpenSim.Region.Framework.Scenes
if ( spawnpoints.Count > 1)
{
// We have multiple SpawnPoints, Route the agent to a random one
agent.startpos = spawnpoints[Util.RandomClass.Next(spawnpoints.Count)].GetLocation(telehub.AbsolutePosition, telehub.GroupRotation);
agent.startpos = spawnpoints[Util.RandomClass.Next(spawnpoints.Count) - 1].GetLocation(telehub.AbsolutePosition, telehub.GroupRotation);
}
else
{