summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-13 06:21:48 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-13 06:23:14 -0700
commit5d27773ad8398d0b9b32974360ad3cb2c3170806 (patch)
tree384087bf7f3299385059cbd5417fe66ae288d52d /crawl-ref/source/acr.cc
parent6aeefc9277378d8dc87780532a66f9e3083e640b (diff)
downloadcrawl-ref-5d27773ad8398d0b9b32974360ad3cb2c3170806.tar.gz
crawl-ref-5d27773ad8398d0b9b32974360ad3cb2c3170806.zip
unit tests: fix crash when running unit tests under a tiles build
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index b7071a0783..bc615905ce 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -3508,6 +3508,10 @@ static bool _initialise(void)
if (crawl_state.test)
{
#ifdef DEBUG_DIAGNOSTICS
+#ifdef USE_TILE
+ init_player_doll();
+ tiles.initialise_items();
+#endif
Options.show_more_prompt = false;
crawl_tests::run_tests(true);
// Superfluous, just to make it clear that this is the end of