Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/Source Code/Libs/src/ReCast/DetourTileCache/Source/DetourTileCacheBuilder.cpp

Diff revisions: vs.
  @@ -2095,7 +2095,7 @@
2095 2095 dtSwapEndian(&swappedVersion);
2096 2096
2097 2097 if ((header->magic != DT_TILECACHE_MAGIC || header->version != DT_TILECACHE_VERSION) &&
2098 - (header->magic != swappedMagic || header->version != swappedVersion))
2098 + (header->magic != swappedMagic || header->version != swappedVersion) || dataSize == 0)
2099 2099 {
2100 2100 return false;
2101 2101 }