mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-23 16:30:19 +01:00
Use gain = 1 when soundset's table doesn't exist for a player
This commit is contained in:
parent
f366bc17fd
commit
cc165d5d6e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user