Squash uninitialized variable warnings.

develop
Alexander Gavrilov 2014-03-02 13:40:53 +04:00
parent 41bcd52c36
commit 983685de8d
1 changed files with 2 additions and 1 deletions

@ -868,6 +868,7 @@ struct PathMetrics {
void compute(const ProjectilePath &path) void compute(const ProjectilePath &path)
{ {
hit_type = Impassable;
collision_step = goal_step = goal_z_step = 1000000; collision_step = goal_step = goal_z_step = 1000000;
collision_z_step = 0; collision_z_step = 0;
@ -1023,7 +1024,7 @@ static void paintAimScreen(df::building_siegeenginest *bld, df::coord view, df::
if (!cur_tile.valid()) if (!cur_tile.valid())
continue; continue;
int color; int color = COLOR_YELLOW;
switch (calcTileStatus(engine, tile_pos)) switch (calcTileStatus(engine, tile_pos))
{ {