Skip to content

Commit 3b233ed

Browse files
lionbryceFPtje
authored andcommitted
Only remove FPP_OriginalOwner if it's the original
Fixes the following bug: A sets B as fallback, logs off B sets C as fallback, logs off B logs in, now owns A's props, A's record has been removed A logs in, props have not been returned as the FPP_OriginalOwner nwvar got cleared
1 parent 6fd465d commit 3b233ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/fpp/server/core.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ function FPP.PlayerInitialSpawn(ply)
671671
v:CPPISetOwner(ply)
672672
table.insert(entities, v)
673673

674-
if v:GetNW2String("FPP_OriginalOwner", "") ~= "" then
674+
if v:GetNW2String("FPP_OriginalOwner") == SteamID then
675675
v:SetNW2String("FPP_OriginalOwner", "")
676676
end
677677
end

0 commit comments

Comments
 (0)