refactoring instantiation of Location object: moving it out of the for
loop as it really is a "constant"0.6.6-post-fixes
parent
20383a61b8
commit
4c7da1421f
|
@ -604,10 +604,11 @@ namespace OpenSim
|
||||||
// Shutting down the client server
|
// Shutting down the client server
|
||||||
bool foundClientServer = false;
|
bool foundClientServer = false;
|
||||||
int clientServerElement = 0;
|
int clientServerElement = 0;
|
||||||
|
Location location = new Location(whichRegion.RegionHandle);
|
||||||
|
|
||||||
for (int i = 0; i < m_clientServers.Count; i++)
|
for (int i = 0; i < m_clientServers.Count; i++)
|
||||||
{
|
{
|
||||||
if (m_clientServers[i].HandlesRegion(new Location(whichRegion.RegionHandle)))
|
if (m_clientServers[i].HandlesRegion(location))
|
||||||
{
|
{
|
||||||
clientServerElement = i;
|
clientServerElement = i;
|
||||||
foundClientServer = true;
|
foundClientServer = true;
|
||||||
|
|
Loading…
Reference in New Issue