summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/item_use.cc2
-rw-r--r--crawl-ref/source/view.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index f683822891..30c1047425 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -630,7 +630,7 @@ static bool cloak_is_being_removed( void )
//---------------------------------------------------------------
void wear_armour(void)
{
- int armour_wear_2;
+ int armour_wear_2 = 0;
if (!armour_prompt("Wear which item?", &armour_wear_2, OPER_WEAR))
return;
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index fdbe60d9f3..0f414d37e8 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -3285,7 +3285,7 @@ std::string screenshot( bool fullscreen )
{
// [ds] Evil hack time again. Peek at grid, use that character.
int object = grd[gx][gy];
- unsigned short glych, glycol;
+ unsigned short glych, glycol = 0;
if (object == DNGN_SECRET_DOOR)
object = grid_secret_door_appearance( gx, gy );