Skip to content

Commit 3e23a45

Browse files
committed
Prevent invalid symbols being output
1 parent 338daa8 commit 3e23a45

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/schemareader.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,10 @@ int SchemaReader::ReadDeclClass( CSchemaType_DeclaredClass *type )
406406
{
407407
// Ugly hack to prevent stringifying corrupted kv3 getter in that class,
408408
// otherwise it'll crash when attempted to be retrieved
409-
if(std::strcmp( ci->m_pszName, "CastSphereSATParams_t" ) != 0)
409+
if(std::strcmp( ci->m_pszName, "CastSphereSATParams_t" ) != 0 &&
410+
// This one outputs corrupted string symbols (mostly just pure data bytes of something)
411+
// which will trip json parsers later
412+
std::strcmp( ci->m_pszName, "modifiedconvars_t" ) != 0)
410413
ReadMetaTags( traits, ci->m_pStaticMetadata, ci->m_nStaticMetadataCount );
411414

412415
if(ci->m_nBaseClassCount > 0)

0 commit comments

Comments
 (0)