We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d62506 commit 37db438Copy full SHA for 37db438
ecsact/wasm/detail/wasm_ecsact_system_execution.cc
@@ -300,10 +300,13 @@ wasm_trap_t* wasm_ecsact_system_execution_context_stream_toggle(
300
auto ctx = get_execution_context(args->data[0]);
301
auto memory = get_execution_context_memory(args->data[0]);
302
303
- ecsact_system_execution_context_add(
+ assert(args->data[2].kind == WASM_I32);
304
+
305
+ ecsact_system_execution_context_stream_toggle(
306
ctx,
- ecsact_id_from_wasm_i32<ecsact_component_like_id>(args->data[1]),
- get_const_void_ptr(args->data[2], memory)
307
+ ecsact_id_from_wasm_i32<ecsact_component_id>(args->data[1]),
308
+ static_cast<bool>(args->data[2].of.i32),
309
+ get_const_void_ptr(args->data[2], memory) // indexed field values
310
);
311
312
return nullptr;
0 commit comments