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:
parent
5977225aca
commit
08dbdb337a
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue