diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-11-23 13:15:45 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-11-24 21:12:20 +0100 |
commit | 1e5b00855e95ee7a1a870395aa6de126bbb40b01 (patch) | |
tree | c62a68e9483a904311dc9a7f9e417daa2d9fc1e3 /crawl-ref/source/libutil.cc | |
parent | 7ccf943b02d73c4e3aeb09125247e5e377173aaa (diff) | |
download | crawl-ref-1e5b00855e95ee7a1a870395aa6de126bbb40b01.tar.gz crawl-ref-1e5b00855e95ee7a1a870395aa6de126bbb40b01.zip |
Fix [foo|bar]-style substitutions not being resolved properly in some cases.
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r-- | crawl-ref/source/libutil.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc index 93500abe6e..ef8b40f7f0 100644 --- a/crawl-ref/source/libutil.cc +++ b/crawl-ref/source/libutil.cc @@ -688,7 +688,7 @@ string maybe_pick_random_substring(string s) break; string substring = s.substr(start + 1, end - start - 1); - vector<string> split = split_string("|", substring, false, false); + vector<string> split = split_string("|", substring, false, true); int index = random2(split.size()); s.replace(start, end + 1 - start, split[index]); } |