mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Fixed negative child agents in the sim stats.
This commit is contained in:
@@ -317,6 +317,12 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
public int GetChildAgentCount()
|
||||
{
|
||||
// some network situations come in where child agents get closed twice.
|
||||
if (m_numChildAgents < 0)
|
||||
{
|
||||
m_numChildAgents = 0;
|
||||
}
|
||||
|
||||
return m_numChildAgents;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user