Skip to content

Commit

Permalink
fix: hirelings save (opentibiabr#2723)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrohfk authored Jul 25, 2024
1 parent f2dc17f commit bbcb95e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/libs/systems/hireling.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bbcb95e

Please sign in to comment.