From 5243079928216605d0eb10fa7711bd503eaf9b3a Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 14 Mar 2008 02:18:34 +0000 Subject: Fix uninitialized variable. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3628 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index e0297f14cb..feaa90c66b 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -2204,9 +2204,8 @@ static void rot_inventory_food(long time_delta) { // Update all of the corpses and food chunks in the player's // inventory {should be moved elsewhere - dlb} - bool burden_changed_by_rot = false; - int blood_num, congealed_blood_num = 0; + int blood_num = 0, congealed_blood_num = 0; std::vector rotten_items; for (int i = 0; i < ENDOFPACK; i++) { @@ -2215,7 +2214,7 @@ static void rot_inventory_food(long time_delta) if (!food_item_needs_time_check(you.inv[i])) continue; - + if ((time_delta / 20) >= you.inv[i].special) { if (you.inv[i].base_type == OBJ_FOOD @@ -2326,7 +2325,7 @@ static void rot_inventory_food(long time_delta) learned_something_new(TUT_ROTTEN_FOOD); } - + if (congealed_blood_num) { std::string msg = ""; @@ -2351,7 +2350,7 @@ static void rot_inventory_food(long time_delta) // // handle_time // -// Do various time related actions... +// Do various time related actions... // This function is called about every 20 turns. // //--------------------------------------------------------------- -- cgit v1.2.3-54-g00ecf