I think my problem is in
Cue* thiscue = newCue();
memcpy(thiscue,scene[cutscene_keyframe].actions[i],sizeof(Cue));
because thats where it gets to as it crashes.
I have an array "scene" of pointers to Keyframe structs. Among the members of the Keyframe struct is an array "actions" of pointers to Cue structs. I want to copy the content of a Cue from "actions" from a Keyframe from "scene".
Is the above code correct for doing this?