chg: skip if not debug

This commit is contained in:
iceman1001 2017-12-02 18:59:47 +01:00
commit d54bb4ddf4
2 changed files with 3 additions and 1 deletions

View file

@ -455,7 +455,7 @@ local function find( main, sub)
main = main:lower()
sub = sub:lower()
for k, v in pairs(_names) do
if ( v[2]:lower() == main and v[3]:lower() == sub) then
if ( v[2]:lower() == main and v[3]:lower() == sub) then
return v
end
end

View file

@ -30,6 +30,8 @@ local bxor = bit32.bxor
---
-- A debug printout-function
local function dbg(args)
if not DEBUG then return end
if type(args) == "table" then
local i = 1
while args[i] do