aboutsummaryrefslogtreecommitdiff
path: root/dep/CascLib/src/CascRootFile_Diablo3.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-07-19 19:31:54 +0200
committerShauren <shauren.trinity@gmail.com>2016-07-19 19:31:54 +0200
commit836221aaf5420afe8ff4719780426251c222b87d (patch)
tree12a66ff491e38f75bb922c21616b93fd24b85ddf /dep/CascLib/src/CascRootFile_Diablo3.cpp
parentcc07a491f64fa958c8a27079bd2def84c577f816 (diff)
parentd463273ab1c8efb9dd6000ee5cb8f780574cdd1e (diff)
Merge branch 'legion' into 6.x
Diffstat (limited to 'dep/CascLib/src/CascRootFile_Diablo3.cpp')
-rw-r--r--dep/CascLib/src/CascRootFile_Diablo3.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/dep/CascLib/src/CascRootFile_Diablo3.cpp b/dep/CascLib/src/CascRootFile_Diablo3.cpp
index c515567af5f..6fa8309a2fe 100644
--- a/dep/CascLib/src/CascRootFile_Diablo3.cpp
+++ b/dep/CascLib/src/CascRootFile_Diablo3.cpp
@@ -231,7 +231,7 @@ static const DIABLO3_ASSET_INFO Assets[] =
{"Accolade", "aco"}, // 0x42
};
-static const DIABLO3_ASSET_INFO UnknownAsset = {"Unknown", "xxx"};
+static const DIABLO3_ASSET_INFO UnknownAsset = {"Unknown", "unk"};
#define DIABLO3_ASSET_COUNT (sizeof(Assets) / sizeof(Assets[0]))
@@ -327,7 +327,7 @@ static size_t CreateShortName(
}
}
- // If we havent't found the package, we either use the default asset extension or "xxx"
+ // If we havent't found the package, we either use the default asset extension or "unk"
if(szPackageName == NULL)
{
if(dwSubIndex == DIABLO3_INVALID_INDEX)
@@ -337,7 +337,7 @@ static size_t CreateShortName(
}
else
{
- strcpy(szBuffer + nLength, "xxx");
+ strcpy(szBuffer + nLength, "unk");
nLength += 3;
}
}
@@ -887,7 +887,7 @@ static int ParseCoreTOC(
// Find out the entry with the maximum index
for(DWORD n = 0; n < pTocHeader->EntryCounts[i]; n++)
{
- if(pTocEntry->FileIndex > dwFileIndexes)
+ if(pTocEntry->FileIndex >= dwFileIndexes)
dwFileIndexes = pTocEntry->FileIndex + 1;
pTocEntry++;
}