aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llhudmanager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/linden/indra/newview/llhudmanager.cpp b/linden/indra/newview/llhudmanager.cpp
index 0da2f8e..d06b84b 100644
--- a/linden/indra/newview/llhudmanager.cpp
+++ b/linden/indra/newview/llhudmanager.cpp
@@ -127,8 +127,8 @@ void LLHUDManager::cleanupEffects()
127 127
128LLHUDEffect *LLHUDManager::createViewerEffect(const U8 type, BOOL send_to_sim, BOOL originated_here) 128LLHUDEffect *LLHUDManager::createViewerEffect(const U8 type, BOOL send_to_sim, BOOL originated_here)
129{ 129{
130 // Should assert that this is actually an LLHUDEffect 130 // SJB: DO NOT USE addHUDObject!!! Not all LLHUDObjects are LLHUDEffects!
131 LLHUDEffect *hep = (LLHUDEffect *)LLHUDObject::addHUDObject(type); 131 LLHUDEffect *hep = LLHUDObject::addHUDEffect(type);
132 if (!hep) 132 if (!hep)
133 { 133 {
134 return NULL; 134 return NULL;
@@ -169,7 +169,6 @@ void LLHUDManager::processViewerEffect(LLMessageSystem *mesgsys, void **user_dat
169 { 169 {
170 effectp = NULL; 170 effectp = NULL;
171 LLHUDEffect::getIDType(mesgsys, k, effect_id, effect_type); 171 LLHUDEffect::getIDType(mesgsys, k, effect_id, effect_type);
172
173 S32 i; 172 S32 i;
174 for (i = 0; i < gHUDManager->mHUDEffects.count(); i++) 173 for (i = 0; i < gHUDManager->mHUDEffects.count(); i++)
175 { 174 {