aboutsummaryrefslogtreecommitdiff
path: root/gamemode/npcsystem/npcs/bird.lua
diff options
context:
space:
mode:
authorAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-03-07 18:44:21 -0500
committerAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-03-07 18:44:21 -0500
commit4d9d034503dac45eea6da1e32da7fa8b2e97ea6a (patch)
treef815372ab17f9aa17b60a2a597d3a43b837c0c33 /gamemode/npcsystem/npcs/bird.lua
parent10ef2a646da0b67d5c1baaed9ac4b0b17a800a98 (diff)
downloadwintersurvival2-4d9d034503dac45eea6da1e32da7fa8b2e97ea6a.tar.gz
wintersurvival2-4d9d034503dac45eea6da1e32da7fa8b2e97ea6a.tar.bz2
wintersurvival2-4d9d034503dac45eea6da1e32da7fa8b2e97ea6a.zip
Fixed npc's bugging out (hopefully)
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()