16,985
edits
(getSkillData: Fix) |
(getEntityByProperty: Fix if propName is anything other than 'id') |
||
Line 108: | Line 108: | ||
elseif type(entData) ~= 'table' then | elseif type(entData) ~= 'table' then | ||
error('Entity data is not a table: ' .. entityType, 2) | error('Entity data is not a table: ' .. entityType, 2) | ||
elseif type(entData[1]) ~= 'table' or entData[1] | elseif type(entData[1]) ~= 'table' or entData[1][propName] == nil then | ||
error('Entity data is not composed of entities: ' .. entityType, 2) | error('Entity data is not composed of entities: ' .. entityType, 2) | ||
end | end |