]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix bug in CTF retriever
authormand1nga <mand1nga@xonotic.org>
Thu, 18 Aug 2011 22:21:34 +0000 (19:21 -0300)
committermand1nga <mand1nga@xonotic.org>
Thu, 18 Aug 2011 22:21:34 +0000 (19:21 -0300)
qcsrc/server/bot/havocbot/role_ctf.qc

index 201e6982a0ac892ec5215e2eca52e50566cf0aaf..7fbdbc0a35798778ea676dcb6ebe651d8556683c 100644 (file)
@@ -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)