diff options
author | Melanie | 2009-12-23 21:20:48 +0000 |
---|---|---|
committer | Melanie | 2009-12-23 21:20:48 +0000 |
commit | c05a35cc7168d13655f7e3a38e0e0df0f2bf1060 (patch) | |
tree | 012d2f3ad338fd1ec2e42707c558143e638e4573 /OpenSim/Region/CoreModules/Avatar | |
parent | Remove GetState. It is really unused and was reinstated by the revert (diff) | |
download | opensim-SC-c05a35cc7168d13655f7e3a38e0e0df0f2bf1060.zip opensim-SC-c05a35cc7168d13655f7e3a38e0e0df0f2bf1060.tar.gz opensim-SC-c05a35cc7168d13655f7e3a38e0e0df0f2bf1060.tar.bz2 opensim-SC-c05a35cc7168d13655f7e3a38e0e0df0f2bf1060.tar.xz |
Fix a bounds exception I came across in IAR restore
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs index b778389..304c081 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs | |||
@@ -258,6 +258,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
258 | = rawDirsToCreate[i].LastIndexOf( | 258 | = rawDirsToCreate[i].LastIndexOf( |
259 | ArchiveConstants.INVENTORY_NODE_NAME_COMPONENT_SEPARATOR); | 259 | ArchiveConstants.INVENTORY_NODE_NAME_COMPONENT_SEPARATOR); |
260 | 260 | ||
261 | if (identicalNameIdentifierIndex < 0) | ||
262 | { | ||
263 | i++; | ||
264 | continue; | ||
265 | } | ||
261 | string newFolderName = rawDirsToCreate[i].Remove(identicalNameIdentifierIndex); | 266 | string newFolderName = rawDirsToCreate[i].Remove(identicalNameIdentifierIndex); |
262 | 267 | ||
263 | newFolderName = InventoryArchiveUtils.UnescapeArchivePath(newFolderName); | 268 | newFolderName = InventoryArchiveUtils.UnescapeArchivePath(newFolderName); |