From cc165d5d6ee757f7ced57bea86f4b1efe5985e0e Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 30 Aug 2015 15:30:47 +0200 Subject: [PATCH] Use gain = 1 when soundset's table doesn't exist for a player --- mods/soundset/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/soundset/init.lua b/mods/soundset/init.lua index 3edf459c..d0dce09b 100755 --- a/mods/soundset/init.lua +++ b/mods/soundset/init.lua @@ -72,7 +72,7 @@ soundset.get_gain = function(name, sound_type) if name == nil or name == "" then return 1 end - if not soundset.gainplayers[name] then return gain end + if not soundset.gainplayers[name] then return 1 end local gain = soundset.gainplayers[name][sound_type] if gain == nil then return 1