Fix: Crash after starting a second challenge mode #169
This commit is contained in:
1 parent
caa46763cd
commit
dc375de632
6 files changed
+35
-10
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user