From e5d38663cb166b77f6085f7119cb50d95dc5d349 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 15 Aug 2014 16:51:54 -0400 Subject: wait until the level is initialized to fixup skills (8568) gaining skills can cause sif's piety to increase, which may cause her to speak, but speech can sometimes depend on the map features that you're standing on, so we need to wait to do this fixup until the level is done initializing --- crawl-ref/source/startup.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crawl-ref/source/startup.cc b/crawl-ref/source/startup.cc index 944b57f527..1c8942ad65 100644 --- a/crawl-ref/source/startup.cc +++ b/crawl-ref/source/startup.cc @@ -244,9 +244,6 @@ static void _post_init(bool newc) { ASSERT(strwidth(you.your_name) <= kNameLen); - // Sanitize skills, init can_train[]. - fixup_skills(); - // Load macros macro_init(); @@ -370,6 +367,9 @@ static void _post_init(bool newc) // be here. if (newc) run_map_epilogues(); + + // Sanitize skills, init can_train[]. + fixup_skills(); } #ifndef DGAMELAUNCH -- cgit v1.2.3-54-g00ecf