diff options
Diffstat (limited to 'OpenSim/Framework/AvatarAppearance.cs')
-rw-r--r-- | OpenSim/Framework/AvatarAppearance.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs index d4bfb2c..53c0d92 100644 --- a/OpenSim/Framework/AvatarAppearance.cs +++ b/OpenSim/Framework/AvatarAppearance.cs | |||
@@ -371,6 +371,14 @@ namespace OpenSim.Framework | |||
371 | VisualParams = (byte[])h["visual_params"]; | 371 | VisualParams = (byte[])h["visual_params"]; |
372 | Texture = new LLObject.TextureEntry((byte[])h["texture"], 0, ((byte[])h["texture"]).Length); | 372 | Texture = new LLObject.TextureEntry((byte[])h["texture"], 0, ((byte[])h["texture"]).Length); |
373 | AvatarHeight = (float)Convert.ToDouble((string)h["avatar_height"]); | 373 | AvatarHeight = (float)Convert.ToDouble((string)h["avatar_height"]); |
374 | |||
375 | m_wearables = new AvatarWearable[MAX_WEARABLES]; | ||
376 | for (int i = 0; i < MAX_WEARABLES; i++) | ||
377 | { | ||
378 | // this makes them all null | ||
379 | m_wearables[i] = new AvatarWearable(); | ||
380 | } | ||
381 | |||
374 | BodyItem = new LLUUID((string)h["body_item"]); | 382 | BodyItem = new LLUUID((string)h["body_item"]); |
375 | BodyAsset = new LLUUID((string)h["body_asset"]); | 383 | BodyAsset = new LLUUID((string)h["body_asset"]); |
376 | SkinItem = new LLUUID((string)h["skin_item"]); | 384 | SkinItem = new LLUUID((string)h["skin_item"]); |