mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 11:25:39 +08:00
refactoring instantiation of Location object: moving it out of the for
loop as it really is a "constant"
This commit is contained in:
@@ -604,10 +604,11 @@ namespace OpenSim
|
||||
// Shutting down the client server
|
||||
bool foundClientServer = false;
|
||||
int clientServerElement = 0;
|
||||
Location location = new Location(whichRegion.RegionHandle);
|
||||
|
||||
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;
|
||||
foundClientServer = true;
|
||||
|
||||
Reference in New Issue
Block a user