Diffstat (limited to 'noncore/multimedia/tonleiter') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/tonleiter/tonleiterdatahelper.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/noncore/multimedia/tonleiter/tonleiterdatahelper.cpp b/noncore/multimedia/tonleiter/tonleiterdatahelper.cpp index 6b8a5bd..c52e0da 100644 --- a/noncore/multimedia/tonleiter/tonleiterdatahelper.cpp +++ b/noncore/multimedia/tonleiter/tonleiterdatahelper.cpp | |||
@@ -99,10 +99,8 @@ int Scale::noOfHaltones() | |||
99 | //**************************************************************************** | 99 | //**************************************************************************** |
100 | int Scale::getHalfTone(int id) | 100 | int Scale::getHalfTone(int id) |
101 | { | 101 | { |
102 | if(id>=0 && noOfHaltones()<id) | 102 | if(id>=0 && id<noOfHaltones()) |
103 | { | ||
104 | return halftones[id]; | 103 | return halftones[id]; |
105 | } | ||
106 | else | 104 | else |
107 | return 0; | 105 | return 0; |
108 | } | 106 | } |