From 624fe8ab5979372674698a59e82009082e02e4fc Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Wed, 21 Aug 2019 14:28:07 -0500 Subject: [PATCH] st/oxr: Change iteration of actions. --- src/xrt/state_trackers/oxr/oxr_input.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/xrt/state_trackers/oxr/oxr_input.c b/src/xrt/state_trackers/oxr/oxr_input.c index ad7a02824..75728a380 100644 --- a/src/xrt/state_trackers/oxr/oxr_input.c +++ b/src/xrt/state_trackers/oxr/oxr_input.c @@ -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 =