summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnlvl.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-10-26 16:44:21 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-11-04 18:49:50 +0100
commitacbc1dae1491c9d986fd81acb70a91ba8785bf4d (patch)
tree7c05c37668f14a4c3bb624fa7c6b511dbbcab1c0 /crawl-ref/source/l_dgnlvl.cc
parentff3b896cb6e3770cd593b867405fde9a94bba00b (diff)
downloadcrawl-ref-acbc1dae1491c9d986fd81acb70a91ba8785bf4d.tar.gz
crawl-ref-acbc1dae1491c9d986fd81acb70a91ba8785bf4d.zip
Split the branch data into read-only and mutable parts.
As a side effect, branches can now be shortened without breaking major save compat. This commit itself doesn't preserve compat though, even though it'd be easy -- other parts are too nasty already.
Diffstat (limited to 'crawl-ref/source/l_dgnlvl.cc')
-rw-r--r--crawl-ref/source/l_dgnlvl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_dgnlvl.cc b/crawl-ref/source/l_dgnlvl.cc
index c00c690753..79bdd4805e 100644
--- a/crawl-ref/source/l_dgnlvl.cc
+++ b/crawl-ref/source/l_dgnlvl.cc
@@ -16,7 +16,7 @@ const char *branch_name = luaL_checkstring(ls, pos); \
branch_type req_branch_type = str_to_branch(branch_name); \
if (req_branch_type == NUM_BRANCHES) \
luaL_error(ls, "Expected branch name"); \
-Branch &br = branches[req_branch_type]
+const Branch &br = branches[req_branch_type]
#define BRANCHFN(name, type, expr) \
LUAFN(dgn_br_##name) { \