summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/teleport.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-15 04:23:48 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-15 04:23:48 -0800
commit287d2535c79d1643338b466c3bbb5f729cb1e9bd (patch)
treeb05e4e380191d60728239eb38c20c0ef9e077e9f /crawl-ref/source/teleport.cc
parent3be53369f544187af7bb88b1ee284ab1348f32af (diff)
downloadcrawl-ref-287d2535c79d1643338b466c3bbb5f729cb1e9bd.tar.gz
crawl-ref-287d2535c79d1643338b466c3bbb5f729cb1e9bd.zip
Was being passed choices via value, not reference
Since the vector random_choose_weighted() used was copied, the pointer it returned became invalkid as soon as the function returned an the copied vector went out of scope.
Diffstat (limited to 'crawl-ref/source/teleport.cc')
0 files changed, 0 insertions, 0 deletions