summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-14 02:18:34 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-14 02:18:34 +0000
commit5243079928216605d0eb10fa7711bd503eaf9b3a (patch)
treea29e59098bdbe4954a26656aa1348bc667d93aaa /crawl-ref/source/effects.cc
parent664400de5a05b96cebdd08dd0aa5a10d0ff739f1 (diff)
downloadcrawl-ref-5243079928216605d0eb10fa7711bd503eaf9b3a.tar.gz
crawl-ref-5243079928216605d0eb10fa7711bd503eaf9b3a.zip
Fix uninitialized variable.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3628 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc9
1 files changed, 4 insertions, 5 deletions
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<char> 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.
//
//---------------------------------------------------------------