diff options
Diffstat (limited to 'crawl-ref/source/random-weight.h')
-rw-r--r-- | crawl-ref/source/random-weight.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/random-weight.h b/crawl-ref/source/random-weight.h index 2c7f8b9bca..8ef1291b69 100644 --- a/crawl-ref/source/random-weight.h +++ b/crawl-ref/source/random-weight.h @@ -8,7 +8,7 @@ * Returns NULL if nothing found, i.e., if all weights are zero. */ template <typename T> -T* random_choose_weighted(std::vector<std::pair<T, int> > choices) +T* random_choose_weighted(std::vector<std::pair<T, int> >& choices) { int total = 0; for (unsigned int i = 0; i < choices.size(); i++) |