diff options
-rw-r--r-- | OpenSim/Region/Environment/Scenes/InnerScene.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 8a7402c..3a38bd2 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs | |||
@@ -317,6 +317,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
317 | 317 | ||
318 | public int GetChildAgentCount() | 318 | public int GetChildAgentCount() |
319 | { | 319 | { |
320 | // some network situations come in where child agents get closed twice. | ||
321 | if (m_numChildAgents < 0) | ||
322 | { | ||
323 | m_numChildAgents = 0; | ||
324 | } | ||
325 | |||
320 | return m_numChildAgents; | 326 | return m_numChildAgents; |
321 | } | 327 | } |
322 | 328 | ||