diff --git a/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs b/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs index 21a416a793..9604bb3f63 100644 --- a/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs +++ b/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs @@ -65,7 +65,7 @@ namespace OpenSim.Region.Environment.Modules { appearance.VisualParams = GetDefaultVisualParams(); appearance.TextureEntry = AvatarAppearance.GetDefaultTextureEntry(); - m_avatarsAppearance[avatarId] = appearance; + m_avatarsAppearance.Add(avatarId, appearance); return true; } } @@ -77,7 +77,7 @@ namespace OpenSim.Region.Environment.Modules GetDefaultAvatarAppearance(out wearables, out visualParams); appearance = new AvatarAppearance(avatarId, wearables, visualParams); - m_avatarsAppearance[avatarId] = appearance; + m_avatarsAppearance.Add(avatarId, appearance); if (m_enablePersist) { m_appearanceMapper.Add(avatarId.UUID, appearance); @@ -204,4 +204,4 @@ namespace OpenSim.Region.Environment.Modules return visualParams; } } -} \ No newline at end of file +}