summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.cc
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-13 00:38:42 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-13 00:38:42 -0700
commit072864bdfdb2befa0cb865dbe4234f7f0c8dec39 (patch)
tree1eb7dabdbe2857e18a75dbaa13882b4a14283acc /crawl-ref/source/artefact.cc
parentb1f1fd413c374aa70fe22a71a5d9e48f9c8f489a (diff)
downloadcrawl-ref-072864bdfdb2befa0cb865dbe4234f7f0c8dec39.tar.gz
crawl-ref-072864bdfdb2befa0cb865dbe4234f7f0c8dec39.zip
artefact.cc: eliminate "array subscript is above array bounds" warnings
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r--crawl-ref/source/artefact.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc
index 0d8597433c..4ca42dc402 100644
--- a/crawl-ref/source/artefact.cc
+++ b/crawl-ref/source/artefact.cc
@@ -310,7 +310,7 @@ static std::string _replace_name_parts(const std::string name_in,
// Functions defined in art-func.h are referenced in art-data.h
#include "art-func.h"
-static unrandart_entry unranddata[] = {
+static unrandart_entry unranddata[UNRAND_LAST] = {
#include "art-data.h"
};