diff options
author | Sean Dague | 2008-05-16 19:24:28 +0000 |
---|---|---|
committer | Sean Dague | 2008-05-16 19:24:28 +0000 |
commit | f99b4cbe3b53abcbfe5e751474085f7653997cc4 (patch) | |
tree | fa4b98afaa7b6579aa6e26a9476b2b5d191ca64f /OpenSim/Framework | |
parent | it helps when both sides of the xml-rpc server agree on the method names (diff) | |
download | opensim-SC-f99b4cbe3b53abcbfe5e751474085f7653997cc4.zip opensim-SC-f99b4cbe3b53abcbfe5e751474085f7653997cc4.tar.gz opensim-SC-f99b4cbe3b53abcbfe5e751474085f7653997cc4.tar.bz2 opensim-SC-f99b4cbe3b53abcbfe5e751474085f7653997cc4.tar.xz |
prime the wearables structure, which should fix the exception
FluxOne found.
Diffstat (limited to '')
-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"]); |