wiremod / wire

Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.
http://www.wiremod.com
Apache License 2.0
549 stars 333 forks source link

Fix NULL errors #3126

Closed Astralcircle closed 3 weeks ago

Astralcircle commented 3 weeks ago

The usual checks for nil may not be enough because the entity can still be NULL

Fixes: [wire-master] addons/wire-master/lua/entities/gmod_wire_pod.lua:499: Tried to use a NULL entity!

  1. GetShootPos- [C]:-1
    1. unknown - addons/wire-master/lua/entities/gmod_wire_pod.lua:499

[wire-master] addons/wire-master/lua/entities/gmod_wire_pod.lua:504: Tried to use a NULL entity!

  1. GetPos - [C]:-1
    1. unknown - addons/wire-master/lua/entities/gmod_wire_pod.lua:504