cleanHyperKaos() fixed (doesn't alter save state, sets head back to NULL)

This commit is contained in:
Iris Lightshard 2018-11-29 19:55:07 -08:00
parent 1fed6282f5
commit 1fa156faf6
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -39,7 +39,6 @@ void cleanHyperKaos(HyperKaos* self)
{ {
Kaos* here = self->head; Kaos* here = self->head;
Kaos* next; Kaos* next;
savestate *= self->kaosID;
if (self->head == NULL) return; if (self->head == NULL) return;
else else
@ -53,6 +52,7 @@ void cleanHyperKaos(HyperKaos* self)
next = here->next; next = here->next;
} }
} }
self->head = NULL;
} }
void addKaos(HyperKaos* self, Kaos* target) void addKaos(HyperKaos* self, Kaos* target)