Fix: Crash after starting a second challenge mode #169

This commit is contained in:
z3ro01 committed 2015-12-21 10:50:19 +01:00
1 parent caa46763cd
commit dc375de632
6 files changed
+35 -10

No files matched your search

+3 -1
View File
@@ -63,8 +63,10 @@ namespace Vocaluxe.Base
get { return _CurrentPartyMode.ID; }
set
{
if (_CurrentPartyMode.ID == value)
if (_CurrentPartyMode.ID == value) {
_CurrentPartyMode.SetDefaults();
return;
}
if (value != -1 && !_PartyModes.ContainsKey(value))
throw new ArgumentException("Partymode with ID=" + value + " does not exist!");
IPartyMode pm = _PartyModes[value].PartyMode;