]> git.droids-corp.org - aversive.git/blobdiff - projects/microb2010/tests/hostsim/strat_utils.c
code 2010
[aversive.git] / projects / microb2010 / tests / hostsim / strat_utils.c
index 8fcecb23232642a69bad764e42c6a46d1b93aee4..57c5a0b04aa305a2b0e50a40c60d96738140a395 100644 (file)
@@ -402,7 +402,7 @@ uint8_t wait_scan_done(uint16_t timeout)
 uint8_t opponent_is_behind(void)
 {
        int8_t opp_there;
-       int16_t opp_d, opp_a;
+       int16_t opp_d = 0, opp_a = 0;
 
        opp_there = get_opponent_da(&opp_d, &opp_a);
        if (opp_there && (opp_a < 215 && opp_a > 145) && opp_d < 600)