Fixed nil reference

This commit is contained in:
Timo Smit 2020-03-23 20:46:06 +01:00
parent 8c58482efb
commit f03044563a
1 changed files with 1 additions and 1 deletions

View File

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