diff options
Diffstat (limited to 'source/slang/slang-reflection-api.cpp')
| -rw-r--r-- | source/slang/slang-reflection-api.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-reflection-api.cpp b/source/slang/slang-reflection-api.cpp index 258266da5..c7349b5d3 100644 --- a/source/slang/slang-reflection-api.cpp +++ b/source/slang/slang-reflection-api.cpp @@ -3600,7 +3600,7 @@ SLANG_API unsigned int spReflectionDecl_getChildrenCount(SlangReflectionDecl* pa Decl* decl = (Decl*)parentDecl; if (as<ContainerDecl>(decl)) { - return (unsigned int)as<ContainerDecl>(decl)->members.getCount(); + return (unsigned int)as<ContainerDecl>(decl)->getDirectMemberDeclCount(); } return 0; @@ -3613,8 +3613,8 @@ SLANG_API SlangReflectionDecl* spReflectionDecl_getChild( Decl* decl = (Decl*)parentDecl; if (auto containerDecl = as<ContainerDecl>(decl)) { - if (containerDecl->members.getCount() > index) - return (SlangReflectionDecl*)containerDecl->members[index]; + if (containerDecl->getDirectMemberDeclCount() > index) + return (SlangReflectionDecl*)containerDecl->getDirectMemberDecl(index); } return nullptr; |
