summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/random-var.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-09-03 23:31:32 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-09-03 23:50:29 +0200
commitab4462479e59fe30967ef5809249d1836a66182e (patch)
treebd7cfdc8468a1f594702a2cab189c223d60213c2 /crawl-ref/source/random-var.cc
parent6e116258be13d26cf53e852f8406ece0c6863e16 (diff)
downloadcrawl-ref-ab4462479e59fe30967ef5809249d1836a66182e.tar.gz
crawl-ref-ab4462479e59fe30967ef5809249d1836a66182e.zip
Formatting/brace/trivial returns fixes.
Diffstat (limited to 'crawl-ref/source/random-var.cc')
-rw-r--r--crawl-ref/source/random-var.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/random-var.cc b/crawl-ref/source/random-var.cc
index 0c401daed0..4e59ba29dd 100644
--- a/crawl-ref/source/random-var.cc
+++ b/crawl-ref/source/random-var.cc
@@ -38,7 +38,7 @@ int random_var::weight(int val) const
{
if (val < start || val >= end)
return 0;
- return (weights[val - start]);
+ return weights[val - start];
}
void random_var::init_weights(weight_func w)