diff --git a/HyperKaos.c b/HyperKaos.c index c238849..9c46851 100644 --- a/HyperKaos.c +++ b/HyperKaos.c @@ -39,7 +39,6 @@ void cleanHyperKaos(HyperKaos* self) { Kaos* here = self->head; Kaos* next; - savestate *= self->kaosID; if (self->head == NULL) return; else @@ -53,6 +52,7 @@ void cleanHyperKaos(HyperKaos* self) next = here->next; } } + self->head = NULL; } void addKaos(HyperKaos* self, Kaos* target)