]> git.mxchange.org Git - flightgear.git/commit
AIFlightPlan: Initialize the same member variables in all constructors.
authorThorstenB <brehmt@gmail.com>
Sun, 25 Mar 2012 12:03:53 +0000 (14:03 +0200)
committerThorstenB <brehmt@gmail.com>
Mon, 26 Mar 2012 19:11:03 +0000 (21:11 +0200)
commitc14343d02bcd05bafa176c0cf4619ee7632a3ab5
treee8901a49a1fa0cae41d9da0a484445dd3c49ad5b
parent39ce84ac52fdbaff1776f38575fb674cf954d0f4
AIFlightPlan: Initialize the same member variables in all constructors.
distance_to_go / lead_distance were not initialized in all constructors.
Fixes 'condition on uninitialized data' reported by valgrind.
Also comment-out unused vars.
src/AIModel/AIFlightPlan.cxx