From 67f9deba0aebba80359a595a979d869b13a77310 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 27 Jul 2023 17:44:02 +0100 Subject: [PATCH] fix get/set in OptionDelay --- lib/voicemeeter/option.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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