diff --git a/Resource/factory/CStringLoader.cpp b/Resource/factory/CStringLoader.cpp index 8be65451..f5c6d979 100644 --- a/Resource/factory/CStringLoader.cpp +++ b/Resource/factory/CStringLoader.cpp @@ -147,7 +147,7 @@ void CStringLoader::LoadNameTable(CInputStream& STRG) } // Name strings - mpStringTable->mStringNames.resize(NameCount); + mpStringTable->mStringNames.resize(mpStringTable->mNumStrings); for (u32 iName = 0; iName < NameCount; iName++) { SNameDef *pDef = &NameDefs[iName];