timeline: update queues during cleaning

...so destructors can safely do stuff like TM_AddAction
(unless they make an infinite loop with that :P)
This commit is contained in:
Sebastian Krzyszkowiak 2017-08-07 01:52:42 +02:00
parent 5725963778
commit 4652efd6a9

View file

@ -326,8 +326,8 @@ SYMBOL_EXPORT void TM_CleanQueue(struct Timeline* timeline) {
free(pom->name);
free(pom);
pom = tmp;
timeline->queue = pom;
}
timeline->queue = NULL;
}
SYMBOL_EXPORT void TM_CleanBackgroundQueue(struct Timeline* timeline) {
@ -344,8 +344,8 @@ SYMBOL_EXPORT void TM_CleanBackgroundQueue(struct Timeline* timeline) {
free(pom->name);
free(pom);
pom = tmp;
timeline->background = pom;
}
timeline->background = NULL;
}
SYMBOL_INTERNAL void DrawQueue(struct Game *game, struct TM_Action* queue, int clipX, int clipY) {