mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-23 16:30:19 +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
|
if name == nil or name == "" then
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
if not soundset.gainplayers[name] then return gain end
|
||||||
local gain = soundset.gainplayers[name][sound_type]
|
local gain = soundset.gainplayers[name][sound_type]
|
||||||
if gain == nil then
|
if gain == nil then
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user