From 44ca73d9f263332d4017ee25c41c7a9463e70486 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 30 Aug 2015 15:21:44 +0200 Subject: [PATCH] Soundset: Fix crash when dead players rejoin a rebooted server --- mods/soundset/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/soundset/init.lua b/mods/soundset/init.lua index 4e210f28..3edf459c 100755 --- a/mods/soundset/init.lua +++ b/mods/soundset/init.lua @@ -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