Skip to content

Commit 530fcfc

Browse files
authored
fix EGP Emitter calling draw with nil (#3209)
1 parent fbe1bed commit 530fcfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/entities/gmod_wire_egp_emitter.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ if CLIENT then
121121
if filter then
122122
render.PushFilterMag(filter)
123123
render.PushFilterMin(filter)
124-
obj:Draw(ent, mat)
124+
obj:Draw(self, mat)
125125
render.PopFilterMag()
126126
render.PopFilterMin()
127127
else
128-
obj:Draw(ent, mat)
128+
obj:Draw(self, mat)
129129
end
130130
EGP:FixMaterial(oldtex)
131131
end

0 commit comments

Comments
 (0)