From 6de1e03ad415a00a73e002c54faafe7c26d10078 Mon Sep 17 00:00:00 2001 From: Denneisk <20892685+Denneisk@users.noreply.github.com> Date: Sat, 7 Dec 2024 09:26:54 -0500 Subject: [PATCH] fix EGP Emitter calling draw with nil --- lua/entities/gmod_wire_egp_emitter.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/entities/gmod_wire_egp_emitter.lua b/lua/entities/gmod_wire_egp_emitter.lua index 2d5467edd5..ce6d13c0d6 100644 --- a/lua/entities/gmod_wire_egp_emitter.lua +++ b/lua/entities/gmod_wire_egp_emitter.lua @@ -121,11 +121,11 @@ if CLIENT then if filter then render.PushFilterMag(filter) render.PushFilterMin(filter) - obj:Draw(ent, mat) + obj:Draw(self, mat) render.PopFilterMag() render.PopFilterMin() else - obj:Draw(ent, mat) + obj:Draw(self, mat) end EGP:FixMaterial(oldtex) end