diff --git a/data/libs/systems/hireling.lua b/data/libs/systems/hireling.lua index 30134cd7cd0..75005a1adfc 100644 --- a/data/libs/systems/hireling.lua +++ b/data/libs/systems/hireling.lua @@ -312,7 +312,7 @@ function Hireling:save() sql = sql .. " WHERE `id`=" .. tostring(self.id) - db.query(sql) + return db.query(sql) end function Hireling:spawn() @@ -390,7 +390,7 @@ function SaveHirelings() local failedCount = 0 for _, hireling in ipairs(HIRELINGS) do - local success = hireling:save() + local success = hireling:save() or false if not success then failedCount = failedCount + 1