]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix uninitialized vector...
authorterencehill <piuntn@gmail.com>
Fri, 20 Jan 2017 14:53:47 +0000 (15:53 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 20 Jan 2017 14:53:47 +0000 (15:53 +0100)
qcsrc/server/bot/default/havocbot/roles.qc

index a4ca874f927be805ff09f36eefe043ed687414e1..d18beab578e7512103b594ad3af14b97f2234787 100644 (file)
@@ -16,7 +16,7 @@
 void havocbot_goalrating_items(entity this, float ratingscale, vector org, float sradius)
 {
        float rating, d, discard, friend_distance, enemy_distance;
-       vector o;
+       vector o = '0 0 0';
        ratingscale = ratingscale * 0.0001; // items are rated around 10000 already
 
        IL_EACH(g_items, it.bot_pickup,