Skip to content

Commit

Permalink
Merge pull request #1828 from thegrb93/fix-first-dupe-ops-difference
Browse files Browse the repository at this point in the history
Fixed ops treated differently with duped() and first()
  • Loading branch information
thegrb93 authored Jan 16, 2019
2 parents 0af8014 + f31bbd5 commit 121f0ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/entities/gmod_wire_expression2/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,10 @@ function ENT:Setup(buffer, includes, restore, forcecompile, filepath)
if not restore then
self.first = true
self:Execute()
self:Think()
end

self:NextThink(CurTime())
self:Think()
end

function ENT:Reset()
Expand Down Expand Up @@ -519,6 +519,7 @@ function ENT:ApplyDupeInfo(ply, ent, info, GetEntByID, GetConstByID)

self.duped = true
self:Execute()
self:Think()
self.duped = false
end

Expand Down

0 comments on commit 121f0ff

Please sign in to comment.