diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2012-03-21 13:51:49 -0400 |
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2012-03-21 13:51:49 -0400 |
| commit | 4c8c4eb28a05056b59461374947b8fffb4e35a3d (patch) | |
| tree | d3972d1a99f31846fd6fa3ddfff010c70a1e32d6 /indra/newview/llvoavatar.cpp | |
| parent | c36acfdc83db294f5832a71854b4c7a25a3bd2fa (diff) | |
changed nearby avatar stat metrics to map instead of array
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
| -rwxr-xr-x | indra/newview/llvoavatar.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index ea771b6d68..1537435526 100755 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -981,8 +981,11 @@ void LLVOAvatar::startPhase(const std::string& phase_name) void LLVOAvatar::stopPhase(const std::string& phase_name) { - LLFrameTimer& timer = getPhaseTimer(phase_name); - timer.pause(); + phase_map_t::iterator iter = mPhases.find(phase_name); + if (iter != mPhases.end()) + { + iter->second.pause(); + } } void LLVOAvatar::stopAllPhases() |
