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 a4ca874..d18beab 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,