From 983685de8de2909f50fbb2a1a14f00103ef53f3e Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sun, 2 Mar 2014 13:40:53 +0400 Subject: [PATCH] Squash uninitialized variable warnings. --- plugins/siege-engine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/siege-engine.cpp b/plugins/siege-engine.cpp index 7e842683e..93ab68228 100644 --- a/plugins/siege-engine.cpp +++ b/plugins/siege-engine.cpp @@ -868,6 +868,7 @@ struct PathMetrics { void compute(const ProjectilePath &path) { + hit_type = Impassable; collision_step = goal_step = goal_z_step = 1000000; collision_z_step = 0; @@ -1023,7 +1024,7 @@ static void paintAimScreen(df::building_siegeenginest *bld, df::coord view, df:: if (!cur_tile.valid()) continue; - int color; + int color = COLOR_YELLOW; switch (calcTileStatus(engine, tile_pos)) {