summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ctest.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-04-07 16:06:11 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-04-07 16:06:11 +0200
commitaa6dc37addec48ec695baa2b20a2ce2c4845cebd (patch)
tree5a78b88770329b9f9bad7613129ecaf1f518bdb5 /crawl-ref/source/ctest.cc
parent9071e1be6da817945684e7fbe08f295bc9035d22 (diff)
downloadcrawl-ref-aa6dc37addec48ec695baa2b20a2ce2c4845cebd.tar.gz
crawl-ref-aa6dc37addec48ec695baa2b20a2ce2c4845cebd.zip
Fix a --test -DDEBUG_FATAL crash.
There's a (normally non-fatal) error message caused by uninitialized item descriptions.
Diffstat (limited to 'crawl-ref/source/ctest.cc')
-rw-r--r--crawl-ref/source/ctest.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/ctest.cc b/crawl-ref/source/ctest.cc
index 701ab8370b..38f39c5e04 100644
--- a/crawl-ref/source/ctest.cc
+++ b/crawl-ref/source/ctest.cc
@@ -93,6 +93,7 @@ static void _init_test_bindings()
luaL_openlib(dlua, "crawl", crawl_test_lib, 0);
dlua.execfile("dlua/test.lua", true, true);
initialise_branch_depths();
+ initialise_item_descriptions();
}
static bool _is_test_selected(const string &testname)