summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-08-15 16:51:54 -0400
committerJesse Luehrs <doy@tozt.net>2014-08-15 16:51:54 -0400
commite5d38663cb166b77f6085f7119cb50d95dc5d349 (patch)
treea5ea9ff98f82b281374e7bd487f42100b6b12244
parentefb7ffefa5659f324737f83a114460c1fc5fc632 (diff)
downloadcrawl-ref-e5d38663cb166b77f6085f7119cb50d95dc5d349.tar.gz
crawl-ref-e5d38663cb166b77f6085f7119cb50d95dc5d349.zip
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
-rw-r--r--crawl-ref/source/startup.cc6
1 files 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