aboutsummaryrefslogtreecommitdiff
path: root/gamemode/npcsystem/npcs/bird.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/npcsystem/npcs/bird.lua')
-rw-r--r--gamemode/npcsystem/npcs/bird.lua2
1 files changed, 1 insertions, 1 deletions
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()