Referenzierungsfehler behoben
This commit is contained in:
1 parent
e0649f503f
commit
3e107950fe
1 file changed
+5
-3
@@ -126,11 +126,13 @@ else
|
||||
if (CurrentSession.LoadGame.QuestionAnswers == null) CurrentSession.LoadGame.QuestionAnswers = new();
|
||||
if (CurrentSession.LoadGame.CurrentQuestion != null)
|
||||
{
|
||||
CurrentSession.LoadGame.QuestionAnswers.Add(new(CurrentSession.LoadGame.CurrentQuestion)
|
||||
CurrentSession.LoadGame.QuestionAnswers.Add(new(CurrentSession.LoadGame.CurrentQuestion));
|
||||
foreach (Answer aw in SelectedAnswers)
|
||||
{
|
||||
GivenAnswers = SelectedAnswers,
|
||||
});
|
||||
CurrentSession.LoadGame.QuestionAnswers[^1].GivenAnswers.Add(aw);
|
||||
}
|
||||
}
|
||||
|
||||
SelectedAnswers.Clear();
|
||||
CurrentSession.LoadGame.NextQuestion();
|
||||
await CurrentSession.SaveAsync();
|
||||
|
||||
Reference in new issue
Block a user