From: mand1nga Date: Thu, 18 Aug 2011 22:21:34 +0000 (-0300) Subject: Fix bug in CTF retriever X-Git-Tag: xonotic-v0.5.0~113 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4a66a9e563f365169902c85f33b3eada7eb73744;p=xonotic%2Fxonotic-data.pk3dir.git Fix bug in CTF retriever --- diff --git a/qcsrc/server/bot/havocbot/role_ctf.qc b/qcsrc/server/bot/havocbot/role_ctf.qc index 201e6982a..7fbdbc0a3 100644 --- a/qcsrc/server/bot/havocbot/role_ctf.qc +++ b/qcsrc/server/bot/havocbot/role_ctf.qc @@ -146,7 +146,8 @@ void havocbot_goalrating_ctf_ourstolenflag(float ratingscale) if(mf.cnt == FLAG_BASE) return; - navigation_routerating(mf, ratingscale, 10000); + if(mf.tag_entity) + navigation_routerating(mf.tag_entity, ratingscale, 10000); }; void havocbot_goalrating_ctf_droppedflags(float ratingscale, vector org, float radius)