From d8b6be43edcd5e2dbf4d92c7eb0f9be4d804c893 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Fri, 28 Jan 2022 12:24:50 -0500 Subject: [PATCH] few comments so I dont forget why my brain busted --- source/SongLoad.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/SongLoad.hx b/source/SongLoad.hx index ff1b94549..3a085c844 100644 --- a/source/SongLoad.hx +++ b/source/SongLoad.hx @@ -160,7 +160,7 @@ class SongLoad trace(arrayDipshit); - if (arrayDipshit != null) + if (arrayDipshit != null) // array isnt null, that means it loaded it as an array and needs to be manually parsed? { // at this point noteStuff[sectionIndex].sectionNotes[noteIndex] is an array because of the cast from the first line in this function // so this line right here turns it back into the NoteData typedef type because of another bastard cast @@ -173,6 +173,9 @@ class SongLoad } else if (noteDataArray != null) { + // array is NULL, so it checks if noteDataArray (doesnt exactly NEED to be an 'array' is also null or not.) + // At this point it should be an OBJECT that can be easily casted!!! + noteStuff[sectionIndex].sectionNotes[noteIndex] = cast noteDataArray; } else