mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-16 07:20:31 +01:00
Soundset: Fix crash when dead players rejoin a rebooted server
This commit is contained in:
parent
f16dc55e92
commit
44ca73d9f2
|
@ -72,6 +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
|
||||
local gain = soundset.gainplayers[name][sound_type]
|
||||
if gain == nil then
|
||||
return 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user