From 4d9d034503dac45eea6da1e32da7fa8b2e97ea6a Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 7 Mar 2016 18:44:21 -0500 Subject: Fixed npc's bugging out (hopefully) --- gamemode/npcsystem/npcs/bird.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gamemode/npcsystem/npcs/bird.lua') diff --git a/gamemode/npcsystem/npcs/bird.lua b/gamemode/npcsystem/npcs/bird.lua index af63e76..55a5c3d 100644 --- a/gamemode/npcsystem/npcs/bird.lua +++ b/gamemode/npcsystem/npcs/bird.lua @@ -38,7 +38,7 @@ end local dorun = function(self,ply) self:StartActivity(ACT_FLY) self:PlaySequenceAndWait( "Fly01" ) - + if(not ply or not ply:IsValid()) then return end --Find a position in roughly the oposite direction of the player local tpos = self:GetPos() local ppos = ply:GetPos() -- cgit v1.2.3-70-g09d2