From 1fa156faf67f0f040b252779007cd805a26968db Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Thu, 29 Nov 2018 19:55:07 -0800 Subject: [PATCH] cleanHyperKaos() fixed (doesn't alter save state, sets head back to NULL) --- HyperKaos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)