aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llgenepool.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llgenepool.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/linden/indra/newview/llgenepool.cpp b/linden/indra/newview/llgenepool.cpp
index 95b15f3..3cc57e9 100644
--- a/linden/indra/newview/llgenepool.cpp
+++ b/linden/indra/newview/llgenepool.cpp
@@ -223,6 +223,14 @@ void LLGenePool::spawn( EWearableType type )
223 223
224 // Only consider archetypes that have the same sex as you have already. 224 // Only consider archetypes that have the same sex as you have already.
225 LLVisualParam* male_param = avatar->getVisualParam( "male" ); 225 LLVisualParam* male_param = avatar->getVisualParam( "male" );
226
227 if (!male_param)
228 {
229 llwarns << "The hard coded \'male\' parameter passed to avatar->getVisualParam() in LLGenePool::spawn() is no longer valid."
230 << llendl;
231 return;
232 }
233
226 S32 male_param_id = male_param->getID(); 234 S32 male_param_id = male_param->getID();
227 F32 sex_weight = male_param->getWeight(); 235 F32 sex_weight = male_param->getWeight();
228 236