summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--synth/in_synth_cli.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/synth/in_synth_cli.cpp b/synth/in_synth_cli.cpp
index ece806b..510d93d 100644
--- a/synth/in_synth_cli.cpp
+++ b/synth/in_synth_cli.cpp
@@ -107,11 +107,9 @@ void do_in_synth_cli()
cout << "error: expected program-number, found '"<<params<<"'"<<endl;
else
{
+ num=atoi(params.c_str());
if ((num>=0) && (num<128))
- {
- num=atoi(params.c_str());
lock_and_load_program(num, programfile[num]);
- }
else
cout << "error: program-number must be one of 0..127" << endl;
}