From 89d00470d4e96c9410ea6ef7daa2af91b0cc9578 Mon Sep 17 00:00:00 2001 From: Askey Date: Thu, 29 Jan 2026 14:50:25 +0100 Subject: [PATCH] Fixed issue where Challenge would crash by trying to Initialize ChallengeExplanation as a puzzle --- SummaSQLGame/ViewModels/ChallengeViewModel.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SummaSQLGame/ViewModels/ChallengeViewModel.cs b/SummaSQLGame/ViewModels/ChallengeViewModel.cs index acece30..c7f36eb 100644 --- a/SummaSQLGame/ViewModels/ChallengeViewModel.cs +++ b/SummaSQLGame/ViewModels/ChallengeViewModel.cs @@ -52,7 +52,10 @@ public ChallengeViewModel(IMainViewModelContext mainContext) type => typeof(IPuzzle).IsAssignableFrom(type) && !type.IsInterface && !type.IsAbstract - && type != typeof(MazeViewModel)).ToList(); + && type != typeof(MazeViewModel) + && type != typeof(ChallengeExplanationViewModel) + ).ToList(); + _mainContext = mainContext; _remainingTime = _totalTime; _timer = new DispatcherTimer();