Remove UBFIX related to task destruction

This commit is contained in:
GriffinR
2022-06-17 15:47:56 -04:00
parent 78b0c20738
commit 7a6b417b8e
3 changed files with 12 additions and 15 deletions
+1 -3
View File
@@ -4762,10 +4762,8 @@ static bool8 FrontierSquaresScroll_End(struct Task *task)
BlendPalettes(PALETTES_ALL, 16, RGB_BLACK);
DestroyTask(FindTaskIdByFunc(task->func));
task->tState++; // Changing value of a destroyed task
#ifndef UBFIX
task->tState++; // UB: changing value of a destroyed task
#endif
return FALSE;
}