mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-25 21:51:38 +00:00
Fix nil spree message
* for sprees % 0, it would try to find and output a max spree while there isn't
This commit is contained in:
parent
d7217cfa88
commit
8b9bfd54a6
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ function sprees.onPlayerSpree(clientId, type, sourceId)
|
||||||
end
|
end
|
||||||
|
|
||||||
local settingSpreeMessages = settings.get("g_spreeMessages")
|
local settingSpreeMessages = settings.get("g_spreeMessages")
|
||||||
if settingSpreeMessages ~= 0 and bits.hasbit(settingSpreeMessages, 2^type) then
|
if settingSpreeMessages ~= 0 and bits.hasbit(settingSpreeMessages, 2^type) and #spreeMessagesByType[type] > 0 then
|
||||||
local spreeMessage = spreeMessages[type][currentSpree]
|
local spreeMessage = spreeMessages[type][currentSpree]
|
||||||
|
|
||||||
if spreeMessage then
|
if spreeMessage then
|
||||||
|
|
Loading…
Reference in a new issue