diff options
Diffstat (limited to 'linden/indra/newview/llhudeffectpointat.cpp')
-rw-r--r-- | linden/indra/newview/llhudeffectpointat.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/linden/indra/newview/llhudeffectpointat.cpp b/linden/indra/newview/llhudeffectpointat.cpp index 2b82748..17485cf 100644 --- a/linden/indra/newview/llhudeffectpointat.cpp +++ b/linden/indra/newview/llhudeffectpointat.cpp | |||
@@ -103,6 +103,32 @@ LLHUDEffectPointAt::~LLHUDEffectPointAt() | |||
103 | //----------------------------------------------------------------------------- | 103 | //----------------------------------------------------------------------------- |
104 | void LLHUDEffectPointAt::packData(LLMessageSystem *mesgsys) | 104 | void LLHUDEffectPointAt::packData(LLMessageSystem *mesgsys) |
105 | { | 105 | { |
106 | LLViewerObject* source_object = (LLViewerObject*)mSourceObject; | ||
107 | |||
108 | if (!source_object) | ||
109 | { | ||
110 | markDead(); | ||
111 | return; | ||
112 | } | ||
113 | else if (!source_object->isAvatar()) | ||
114 | { | ||
115 | LL_DEBUGS("HUDEffect")<<"Non-Avatar HUDEffectPointAt message for ID: " | ||
116 | << source_object->getID().asString()<< LL_ENDL; | ||
117 | markDead(); | ||
118 | return; | ||
119 | } | ||
120 | else | ||
121 | { | ||
122 | LLVOAvatar* source_avatar = (LLVOAvatar*)source_object; | ||
123 | if (!source_avatar->isSelf()) | ||
124 | { | ||
125 | LL_DEBUGS("HUDEffect")<<"Non-self HUDEffectPointAt message for ID: " | ||
126 | << source_avatar->getID().asString()<< LL_ENDL; | ||
127 | markDead(); | ||
128 | return; | ||
129 | } | ||
130 | } | ||
131 | |||
106 | // Pack the default data | 132 | // Pack the default data |
107 | LLHUDEffect::packData(mesgsys); | 133 | LLHUDEffect::packData(mesgsys); |
108 | 134 | ||