From fb1d8e26018be3ae9bf33ed7d69e5428e3644142 Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Thu, 19 Sep 2024 08:43:14 -0700 Subject: [PATCH] fix: accidentally comparing against optional --- cpp_systems_header_codegen/cpp_systems_header_codegen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp_systems_header_codegen/cpp_systems_header_codegen.cc b/cpp_systems_header_codegen/cpp_systems_header_codegen.cc index 6d5c556..cb28c53 100644 --- a/cpp_systems_header_codegen/cpp_systems_header_codegen.cc +++ b/cpp_systems_header_codegen/cpp_systems_header_codegen.cc @@ -455,7 +455,7 @@ struct context_body_details { details.optional_components.emplace(comp_id); } - if((cap & ECSACT_SYS_CAP_OPTIONAL) == ECSACT_SYS_CAP_STREAM_TOGGLE) { + if((cap & ECSACT_SYS_CAP_STREAM_TOGGLE) == ECSACT_SYS_CAP_STREAM_TOGGLE) { details.stream_components.emplace(comp_id); } }