diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-03-16 16:20:18 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-03-16 16:23:52 +0100 |
commit | 49445940e44b266f4ad9c035540ab834ffdf5ef8 (patch) | |
tree | 05bdee6a27f8a90b1fc675f42f8bad184aac5432 /res/controllers/midi-components-0.0.js | |
parent | 243fb3237c0661fb4f1af18ea714a4f18ba4212e (diff) |
res/controllers/midi-components: Add check for CO values > 0xFFFFFF
Diffstat (limited to 'res/controllers/midi-components-0.0.js')
-rw-r--r-- | res/controllers/midi-components-0.0.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/controllers/midi-components-0.0.js b/res/controllers/midi-components-0.0.js index 8a8da84719..3a87fec128 100644 --- a/res/controllers/midi-components-0.0.js +++ b/res/controllers/midi-components-0.0.js @@ -323,7 +323,7 @@ outputColor: function(colorCode) { // Sends the color from the colorCode to the controller. This // method will not be called if no colorKey has been specified. - if (colorCode === undefined || colorCode < 0) { + if (colorCode === undefined || colorCode < 0 || colorCode > 0xFFFFFF) { print("Ignoring invalid color code '" + colorCode + "' in outputColor()"); return; } |