Initialize aircraft speed in interactive mode.

The effect of this bug was random speeds displayed with --interactive.
This commit is contained in:
antirez 2013-01-08 19:23:25 +01:00
parent 1576b61af5
commit 3f47bb6f47

View file

@ -1202,6 +1202,7 @@ struct aircraft *interactiveCreateAircraft(uint32_t addr) {
snprintf(a->hexaddr,sizeof(a->hexaddr),"%06x",(int)addr);
a->flight[0] = '\0';
a->altitude = 0;
a->speed = 0;
a->seen = time(NULL);
a->messages = 0;
a->next = NULL;