diff options
-rw-r--r-- | crawl-ref/source/files.cc | 3 | ||||
-rw-r--r-- | crawl-ref/source/newgame.h | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 1444025a33..dba2a7b8ac 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -51,6 +51,7 @@ #include "initfile.h" #include "itemprop.h" #include "items.h" +#include "jobs.h" #include "kills.h" #include "libutil.h" #include "los.h" @@ -649,7 +650,7 @@ static void _fill_player_doll(player_save_info &p, const std::string &dollfile) if (!success) // Use default doll instead. { - int job = get_class_by_name(p.class_name.c_str()); + job_type job = get_class_by_name(p.class_name.c_str()); if (job == -1) job = JOB_FIGHTER; diff --git a/crawl-ref/source/newgame.h b/crawl-ref/source/newgame.h index e994fcf556..bb3feb5dbd 100644 --- a/crawl-ref/source/newgame.h +++ b/crawl-ref/source/newgame.h @@ -59,9 +59,4 @@ void give_basic_mutations(species_type speci); bool validate_player_name(const char *name, bool verbose); -/* *********************************************************************** - * called from: files.cc - * *********************************************************************** */ -int get_class_by_name(const char *name); - #endif |