From 4895b3c908991b9cb0d9743986a61bd034c3ce4b Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Thu, 26 Nov 2009 23:41:00 -0800 Subject: Quiet unitialized variable compiler warning. --- crawl-ref/source/effects.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index b487603a5c..fd10393667 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -4049,7 +4049,7 @@ static void _catchup_monster_moves(monsters *mon, int turns) // player, and a quarter has gone to sleep. A given monster has a // 95% chance of forgetting the player after 4*x turns, and going to // sleep after 10*x turns. - int x; + int x = 0; // Quiet unitialized variable compiler warning. switch (mons_intel(mon)) { case I_HIGH: -- cgit v1.2.3-54-g00ecf