diff --git a/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp b/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp index 8a86d218..dbc2e1b9 100644 --- a/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp +++ b/src/Components/Modules/AssetInterfaces/IclipMap_t.cpp @@ -770,7 +770,7 @@ namespace Assets if (clipMap->partitions[i].borderCount > 0) { int index = reader.read(); - if (index < 0 || index > clipMap->partitionCount) + if (index < 0 || index > clipMap->borderCount) { Components::Logger::Error("invalid border index\n"); return;