commit 7f03a124
Protect against a segmentation fault that happened if the user picked "Just this once" on the Safe mode screen
Changed files
| M | source/code/MenuSystem.h before |
diff --git a/source/code/MenuSystem.h b/source/code/MenuSystem.h
index daeb37b..d532fdf 100644
--- a/source/code/MenuSystem.h
+++ b/source/code/MenuSystem.h
@@ -53,7 +53,7 @@ class Button
{
private:
//Pointer to a callback function.
- void (*action)(void);
+ void (*action)(void) = nullptr;
//If true the menu should also be closed then the button is clicked
bool popOnRun = false;