Garrus2142 / Slashers

Garrysmod's Gamemode
21 stars 24 forks source link

Check if ENT is valid before checking line #69

Closed Yoshi-OOF closed 2 years ago

Yoshi-OOF commented 2 years ago

Without this small correction we can have this error :

[Slashers Gamemode] gamemodes/slashers/gamemode/maps/slash_subway.lua:117: bad argument #1 to 'IsLineOfSightClear' (Vector expected, got nil)
  1. IsLineOfSightClear - [C]:-1
   2. fn - gamemodes/slashers/gamemode/maps/slash_subway.lua:117
    3. unknown - addons/ulib_557962238/lua/ulib/shared/hook.lua:109
Yoshi-OOF commented 2 years ago

Thanks a lot!

I love your gamemode so if I can help no problem 😉