diff --git a/lib/voicemeeter/option.rb b/lib/voicemeeter/option.rb index 68a6e35..68e23ed 100644 --- a/lib/voicemeeter/option.rb +++ b/lib/voicemeeter/option.rb @@ -34,11 +34,11 @@ module Voicemeeter end def get - getter("[#{i}]").to_i + getter("[#{@index}]").to_i end def set(val) - setter("[#{i}]", val) + setter("[#{@index}]", val) end end