1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-24 05:30:17 +02:00

Use gain = 1 when soundset's table doesn't exist for a player

This commit is contained in:
LeMagnesium 2015-08-30 15:30:47 +02:00
parent f366bc17fd
commit cc165d5d6e

View File

@ -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