1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-27 23:10:33 +02:00

Soundset: Fix crash when dead players rejoin a rebooted server

This commit is contained in:
LeMagnesium 2015-08-30 15:21:44 +02:00
parent f16dc55e92
commit 44ca73d9f2

View File

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