diff options
author | Dr Scofield | 2009-05-20 13:37:25 +0000 |
---|---|---|
committer | Dr Scofield | 2009-05-20 13:37:25 +0000 |
commit | 4c7da1421fcdec59de487bb5744d545b3fbed7c0 (patch) | |
tree | 21710fbefbfbd6130f4d4dda37b3129719d09dbd /OpenSim/Region/Application/OpenSimBase.cs | |
parent | Thank you, StrawberryFride, for a patch to fix SceneBan behavior. (diff) | |
download | opensim-SC-4c7da1421fcdec59de487bb5744d545b3fbed7c0.zip opensim-SC-4c7da1421fcdec59de487bb5744d545b3fbed7c0.tar.gz opensim-SC-4c7da1421fcdec59de487bb5744d545b3fbed7c0.tar.bz2 opensim-SC-4c7da1421fcdec59de487bb5744d545b3fbed7c0.tar.xz |
refactoring instantiation of Location object: moving it out of the for
loop as it really is a "constant"
Diffstat (limited to 'OpenSim/Region/Application/OpenSimBase.cs')
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 14ae5f1..eaf6e4f 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -604,10 +604,11 @@ namespace OpenSim | |||
604 | // Shutting down the client server | 604 | // Shutting down the client server |
605 | bool foundClientServer = false; | 605 | bool foundClientServer = false; |
606 | int clientServerElement = 0; | 606 | int clientServerElement = 0; |
607 | Location location = new Location(whichRegion.RegionHandle); | ||
607 | 608 | ||
608 | for (int i = 0; i < m_clientServers.Count; i++) | 609 | for (int i = 0; i < m_clientServers.Count; i++) |
609 | { | 610 | { |
610 | if (m_clientServers[i].HandlesRegion(new Location(whichRegion.RegionHandle))) | 611 | if (m_clientServers[i].HandlesRegion(location)) |
611 | { | 612 | { |
612 | clientServerElement = i; | 613 | clientServerElement = i; |
613 | foundClientServer = true; | 614 | foundClientServer = true; |