diff --git a/Source/Game-Lib/Game-Lib/Input/InputActionSystem.h b/Source/Game-Lib/Game-Lib/Input/InputActionSystem.h index 500fe7f..8b5a077 100644 --- a/Source/Game-Lib/Game-Lib/Input/InputActionSystem.h +++ b/Source/Game-Lib/Game-Lib/Input/InputActionSystem.h @@ -368,8 +368,13 @@ class InputActionSystem struct PersistedBindingOverride { public: + // GCC rejects default member initializers on nested types when a member of the + // enclosing class needs them before the class is complete (gcc bug 96645), so + // initialize via the constructor instead + PersistedBindingOverride() : present(false) {} + std::optional binding; - bool present = false; + bool present; }; using PersistedActionOverrides = std::array;