Skip to content

Commit 9050343

Browse files
authored
Fixes an error caused when the name of BaseEntityOutput is overlapped with another DataDesc. (#501)
1 parent 3a2ef92 commit 9050343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/core/modules/entities/entities_entity.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ CBaseEntityOutputWrapper* CBaseEntityWrapper::get_output(const char* name)
180180
if (pCurrentDataDesc.externalName && strcmp(name, pCurrentDataDesc.externalName) == 0)
181181
{
182182
if (!(pCurrentDataDesc.flags & FTYPEDESC_OUTPUT))
183-
BOOST_RAISE_EXCEPTION(PyExc_TypeError, "'%s' is not a valid output.", name);
183+
continue;
184184

185185
return (CBaseEntityOutputWrapper *)((unsigned long)this + TypeDescriptionExt::get_offset(pCurrentDataDesc));
186186
}

0 commit comments

Comments
 (0)