Skip to content

Commit 5b2c353

Browse files
authored
invert ReplaceOwner arguments in SetOwner
1 parent 463f626 commit 5b2c353

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/warden/ownership/sh_ownership.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function Warden.SetOwner(entOrID, plyOrID)
118118
local steamID = Warden.PossibleSteamID(plyOrID)
119119
if not steamID then
120120
if type(plyOrID) == "number" or IsValid(plyOrID) then
121-
Warden.ReplaceOwner(entOrID, plyOrID)
121+
Warden.ReplaceOwner(plyOrID, entOrID)
122122
return true
123123
end
124124

@@ -244,4 +244,4 @@ function Warden._GetPlayerTable(plyOrID)
244244
if not id then return {} end
245245

246246
return Warden.Players[id] or {}
247-
end
247+
end

0 commit comments

Comments
 (0)