aboutsummaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rwxr-xr-xcommon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.c b/common.c
index 9fe2c36..7b024a0 100755
--- a/common.c
+++ b/common.c
@@ -683,7 +683,7 @@ void rhythm_memory_evaluate(t_rhythm_memory_representation *rep_list, // the mem
}
// return 0 if failed finding the rhythm, 1 if the rhythm was found
int rhythm_memory_get_rhythm(t_rhythm_memory_representation *rep_list, // the memory
- t_rhythm_event *out_rhythm, // a pointer to the returned rhythm
+ t_rhythm_event **out_rhythm, // a pointer to the returned rhythm
// the id of the main rhythm wanted
unsigned short int id,
// the sub-id of the sub-rhythm wanted
@@ -705,7 +705,7 @@ int rhythm_memory_get_rhythm(t_rhythm_memory_representation *rep_list, // the me
if (curr2->id == sub_id)
{
// i've found the rhythm!
- out_rhythm=curr2->rhythm;
+ *out_rhythm=curr2->rhythm;
return 1;
}
curr2 = curr2->next;