X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Ftests%2Fhostsim%2Fstrat_utils.c;h=57c5a0b04aa305a2b0e50a40c60d96738140a395;hp=8fcecb23232642a69bad764e42c6a46d1b93aee4;hb=1714f4ee916fca95ce24120ea6e698237913f947;hpb=87ccd3af8abb0da3e0fa98dc8e9216fc7b676f97 diff --git a/projects/microb2010/tests/hostsim/strat_utils.c b/projects/microb2010/tests/hostsim/strat_utils.c index 8fcecb2..57c5a0b 100644 --- a/projects/microb2010/tests/hostsim/strat_utils.c +++ b/projects/microb2010/tests/hostsim/strat_utils.c @@ -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)