Fixed STRG loader bug that caused a crash if a STRG file with names didn't have a name for every string

This commit is contained in:
parax0 2015-08-19 11:59:34 -04:00
parent 5977225aca
commit 08dbdb337a
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ void CStringLoader::LoadNameTable(CInputStream& STRG)
} }
// Name strings // Name strings
mpStringTable->mStringNames.resize(NameCount); mpStringTable->mStringNames.resize(mpStringTable->mNumStrings);
for (u32 iName = 0; iName < NameCount; iName++) for (u32 iName = 0; iName < NameCount; iName++)
{ {
SNameDef *pDef = &NameDefs[iName]; SNameDef *pDef = &NameDefs[iName];