mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
st/oxr: Change iteration of actions.
This commit is contained in:
parent
79402d0081
commit
624fe8ab59
|
@ -623,7 +623,7 @@ oxr_session_destroy_all_sources(struct oxr_logger* log,
|
|||
struct oxr_session* sess,
|
||||
struct oxr_action_set* act_set)
|
||||
{
|
||||
for (uint32_t k = 0; k < ARRAY_SIZE(act_set->handle.children); k++) {
|
||||
for (uint32_t k = 0; k < XRT_MAX_HANDLE_CHILDREN; k++) {
|
||||
// This assumes that all children are actions.
|
||||
struct oxr_action* act =
|
||||
(struct oxr_action*)act_set->handle.children[k];
|
||||
|
@ -703,8 +703,7 @@ oxr_action_sync_data(struct oxr_logger* log,
|
|||
&actionSets[i].subactionPath,
|
||||
&sub_paths);
|
||||
|
||||
for (uint32_t k = 0; k < ARRAY_SIZE(act_set->handle.children);
|
||||
k++) {
|
||||
for (uint32_t k = 0; k < XRT_MAX_HANDLE_CHILDREN; k++) {
|
||||
// This assumes that all children of a
|
||||
// action set are actions.
|
||||
struct oxr_action* act =
|
||||
|
|
Loading…
Reference in a new issue