From f03044563a975fbaaa3fb8ee69d88b208fe1916a Mon Sep 17 00:00:00 2001 From: Timo Smit Date: Mon, 23 Mar 2020 20:46:06 +0100 Subject: [PATCH] Fixed nil reference --- luascripts/wolfadmin/game/sprees.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luascripts/wolfadmin/game/sprees.lua b/luascripts/wolfadmin/game/sprees.lua index b5f5278..3f7c0ad 100644 --- a/luascripts/wolfadmin/game/sprees.lua +++ b/luascripts/wolfadmin/game/sprees.lua @@ -282,7 +282,7 @@ function sprees.onPlayerSpree(clientId, causeId, type) currentSpree, spreeNames[type]) - if settings.get("g_spreeSounds") > 0 and maxSpreeMessage["sound"] and maxSpreeMessage["sound"] ~= "" and files.exists("sound/spree/"..spreeMessage["sound"]) then + if settings.get("g_spreeSounds") > 0 and maxSpreeMessage["sound"] and maxSpreeMessage["sound"] ~= "" and files.exists("sound/spree/"..maxSpreeMessage["sound"]) then if bits.hasbit(settings.get("g_spreeSounds"), sprees.SOUND_PLAY_PUBLIC) then et.trap_SendConsoleCommand(et.EXEC_APPEND, "playsound \"sound/spree/"..maxSpreeMessage["sound"].."\";") else