mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
add limites checks on wearables size, revert to max 15 for
compatibility/testing
This commit is contained in:
@@ -665,7 +665,12 @@ namespace OpenSim.Framework
|
||||
if ((args["wearables"] != null) && (args["wearables"]).Type == OSDType.Array)
|
||||
{
|
||||
OSDArray wears = (OSDArray)(args["wearables"]);
|
||||
for (int i = 0; i < wears.Count / 2; i++)
|
||||
|
||||
int count = wears.Count;
|
||||
if (count > AvatarWearable.MAX_WEARABLES)
|
||||
count = AvatarWearable.MAX_WEARABLES;
|
||||
|
||||
for (int i = 0; i < count / 2; i++)
|
||||
{
|
||||
AvatarWearable awear = new AvatarWearable((OSDArray)wears[i]);
|
||||
Appearance.SetWearable(i,awear);
|
||||
|
||||
Reference in New Issue
Block a user