Skip to content

Commit

Permalink
[UI] Fix compilation errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
riperiperi committed Nov 28, 2019
1 parent d297268 commit 6cbf8d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client/Simitone/Simitone.Client/UI/Panels/UICheatTextbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private void commandEntered(string commandString, out bool shouldHide)
shouldHide = true;
if (string.IsNullOrWhiteSpace(commandString)) return; // a blank textbox should close after hitting enter -- even if a command was never run.

var cheat = new VMBudgetCheatCmd();
var cheat = new VMNetCheatCmd();
var context = new VMCheatContext();
var repetitions = getRepetitions(commandString);
switch (trimRepetitions(commandString))
Expand All @@ -120,7 +120,7 @@ private void commandEntered(string commandString, out bool shouldHide)
FSO.HIT.HITVM.Get().PlaySoundEvent(UISounds.Error); // in TS1 this was a dialog but a sound may be less intrusive
return;
}
context.Repetitions = repetitions;
context.Repetitions = (byte)repetitions;
var sndEvent = UISounds.Error;
if (context.CheatBehavior != VMCheatContext.VMCheatType.InvalidCheat)
{
Expand Down

0 comments on commit 6cbf8d5

Please sign in to comment.