diff options
author | Teravus Ovares | 2008-02-07 08:28:48 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-07 08:28:48 +0000 |
commit | dba1f476c96c24807f409cf6a9fadde831456dae (patch) | |
tree | 4007ab1865896ed6d75b94cfa3a1d16b5b86a403 /OpenSim/Region/Environment/Scenes/InnerScene.cs | |
parent | * This update contains a bucket-full of network optimizations. (diff) | |
download | opensim-SC_OLD-dba1f476c96c24807f409cf6a9fadde831456dae.zip opensim-SC_OLD-dba1f476c96c24807f409cf6a9fadde831456dae.tar.gz opensim-SC_OLD-dba1f476c96c24807f409cf6a9fadde831456dae.tar.bz2 opensim-SC_OLD-dba1f476c96c24807f409cf6a9fadde831456dae.tar.xz |
* Fixed negative child agents in the sim stats.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/InnerScene.cs')
-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 | ||