From d8b2318acdb9ef69500b1ee751fc9bd43f80512e Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 9 May 2018 15:52:36 +0200 Subject: [PATCH] [IclipMap_t] Fix border mapping --- src/Components/Modules/AssetInterfaces/IclipMap_t.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;