add descriptive todo for death crash bandaid (#655)

Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
briaguya 2022-07-11 21:58:31 -04:00 committed by GitHub
parent 37bf9b36ad
commit eab3b5bd7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,9 @@ void Lights_BindAll(Lights* lights, LightNode* listHead, Vec3f* vec) {
while (listHead != NULL) {
info = listHead->info;
if (info->type < 3) { // bandaid fix for death crash issue
// OTRTODO: we do not know the root cause of the info->type value being invalid
// but this prevents it from crashing the game on the game over screen
if (info->type < 3) {
bindFuncs[info->type](lights, &info->params, vec);
}
listHead = listHead->next;