mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 18:36:01 +00:00
libunitscan: make sure to have a valid db
This commit is contained in:
@@ -45,7 +45,7 @@ function GetUnitData(name, active)
|
||||
end
|
||||
|
||||
local function AddData(db, name, class, level, elite)
|
||||
if not name then return end
|
||||
if not name or not db then return end
|
||||
units[db][name] = units[db][name] or {}
|
||||
units[db][name].class = class or units[db][name].class
|
||||
units[db][name].level = level or units[db][name].level
|
||||
|
||||
Reference in New Issue
Block a user