repair the count of avatars and servers

This commit is contained in:
Stephen Birarda 2014-01-28 12:31:25 -08:00
parent 2aaa9ce3f6
commit 3a706a2759

View file

@ -3148,10 +3148,8 @@ void Application::displayStats() {
glPointSize(1.0f);
int totalAvatars = 0, totalServers = 0;
foreach (const SharedNodePointer& node, NodeList::getInstance()->getNodeHash()) {
node->getType() == NODE_TYPE_AGENT ? totalAvatars++ : totalServers++;
}
int totalAvatars = _avatarManager.size();
int totalServers = NodeList::getInstance()->size();
if (mirrorEnabled) {
horizontalOffset += MIRROR_VIEW_WIDTH + MIRROR_VIEW_LEFT_PADDING * 2;