[IclipMap_t] Fix border mapping

This commit is contained in:
momo5502 2018-05-09 15:52:36 +02:00
parent ceebe4dfd0
commit d8b2318acd

View File

@ -770,7 +770,7 @@ namespace Assets
if (clipMap->partitions[i].borderCount > 0) if (clipMap->partitions[i].borderCount > 0)
{ {
int index = reader.read<int>(); int index = reader.read<int>();
if (index < 0 || index > clipMap->partitionCount) if (index < 0 || index > clipMap->borderCount)
{ {
Components::Logger::Error("invalid border index\n"); Components::Logger::Error("invalid border index\n");
return; return;