summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/show.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-08-27 23:25:02 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-08-27 23:41:42 +0200
commitcdeb0bb5e5473b9a929d612e1cffabb4f533646f (patch)
tree0b13c7ffb8e6970446f38e8dae575f4609dfbd7d /crawl-ref/source/show.cc
parent8dd6ab527d023e7e11a6d67d4c40069d321b254d (diff)
downloadcrawl-ref-cdeb0bb5e5473b9a929d612e1cffabb4f533646f.tar.gz
crawl-ref-cdeb0bb5e5473b9a929d612e1cffabb4f533646f.zip
Rename hash(), it conflicts with std::hash in C++11.
Diffstat (limited to 'crawl-ref/source/show.cc')
-rw-r--r--crawl-ref/source/show.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/show.cc b/crawl-ref/source/show.cc
index 9c870fc8b7..2103ff1ccc 100644
--- a/crawl-ref/source/show.cc
+++ b/crawl-ref/source/show.cc
@@ -339,7 +339,7 @@ static int _hashed_rand(const monster* mons, uint32_t id, uint32_t die)
data.id = id;
data.seed = you.attribute[ATTR_SEEN_INVIS_SEED];
- return hash(&data, sizeof(data)) % die;
+ return hash32(&data, sizeof(data)) % die;
}
/**