summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-13 12:40:50 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-13 12:40:50 +0000
commit1b7682ecfe6bb7d7d37e73f8769a452fdc8b04d2 (patch)
tree153c6ac2a903248e5c28e39b4a6cc3928834951a /crawl-ref/source/spells2.cc
parent0eb7e87096f07509f3fed6a82fab696d505a2c18 (diff)
downloadcrawl-ref-1b7682ecfe6bb7d7d37e73f8769a452fdc8b04d2.tar.gz
crawl-ref-1b7682ecfe6bb7d7d37e73f8769a452fdc8b04d2.zip
General code cleanups and goto removal.
Fixed a possible crash when using Backspace to restart character selection. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1855 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 9eeaa49fc4..13fe97e359 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -273,14 +273,12 @@ int corpse_rot(int power)
place_cloud(CLOUD_MIASMA, adx, ady,
4 + random2avg(16, 3), KC_YOU);
- goto out_of_raise;
+ // Don't look for more corpses here
+ break;
}
hrg = mitm[objl].link;
objl = hrg;
}
-
- out_of_raise:
- objl = 1;
}
}
}