summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-03 11:48:10 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-03 11:48:10 +0000
commit64c579b2ffaaff8ff6aa49fac6520218d09ac559 (patch)
tree9d950cebf330b3d58173b954343da56d5f678a5e /crawl-ref/source/hiscores.cc
parentc64f7db0025aeb9d0c0392271fb011053ff5d6cf (diff)
downloadcrawl-ref-64c579b2ffaaff8ff6aa49fac6520218d09ac559.tar.gz
crawl-ref-64c579b2ffaaff8ff6aa49fac6520218d09ac559.zip
Reintroduce parts of the old get_species_by_index to code to fix
misbehaviuor with wizmode-defined ghosts (doesn't really work anyway) and (hopefully) the highscores. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3507 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r--crawl-ref/source/hiscores.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc
index db21884def..fee4dd2417 100644
--- a/crawl-ref/source/hiscores.cc
+++ b/crawl-ref/source/hiscores.cc
@@ -612,7 +612,7 @@ void scorefile_entry::init_with_fields()
uid = fields->int_field("uid");
race = str_to_species(fields->str_field("race"));
- cls = get_class_index_by_name(fields->str_field("cls").c_str());
+ cls = get_class_by_name(fields->str_field("cls").c_str());
lvl = fields->int_field("xl");