mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-21 20:01:18 +00:00
Fixed nil reference
This commit is contained in:
parent
8c58482efb
commit
f03044563a
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ function sprees.onPlayerSpree(clientId, causeId, type)
|
||||||
currentSpree,
|
currentSpree,
|
||||||
spreeNames[type])
|
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
|
if bits.hasbit(settings.get("g_spreeSounds"), sprees.SOUND_PLAY_PUBLIC) then
|
||||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "playsound \"sound/spree/"..maxSpreeMessage["sound"].."\";")
|
et.trap_SendConsoleCommand(et.EXEC_APPEND, "playsound \"sound/spree/"..maxSpreeMessage["sound"].."\";")
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue