Referenzierungsfehler behoben
This commit is contained in:
parent
e0649f503f
commit
3e107950fe
@ -126,11 +126,13 @@ else
|
|||||||
if (CurrentSession.LoadGame.QuestionAnswers == null) CurrentSession.LoadGame.QuestionAnswers = new();
|
if (CurrentSession.LoadGame.QuestionAnswers == null) CurrentSession.LoadGame.QuestionAnswers = new();
|
||||||
if (CurrentSession.LoadGame.CurrentQuestion != null)
|
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();
|
SelectedAnswers.Clear();
|
||||||
CurrentSession.LoadGame.NextQuestion();
|
CurrentSession.LoadGame.NextQuestion();
|
||||||
await CurrentSession.SaveAsync();
|
await CurrentSession.SaveAsync();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user