Newbrict / ObjHunt

A Good Garry's Mod Prop Hunt
Apache License 2.0
17 stars 21 forks source link

Taunt on join #71

Closed Spaenny closed 10 years ago

Spaenny commented 10 years ago

Getting this Error when I finished to connect and someone plays a taunt in that time.

[ERROR] gamemodes/ObjHunt/gamemode/cl_init.lua:119: Tried to use a NULL entity!

  1. CreateSound - [C]:-1
    1. func - gamemodes/ObjHunt/gamemode/cl_init.lua:119
    2. unknown - lua/includes/modules/net.lua:32
Newbrict commented 10 years ago

Should be a simple fix, just check to make sure the sound is valid, and the ent created with that sound is valid before trying to use it.

don't have time to fix for now though.