From 072864bdfdb2befa0cb865dbe4234f7f0c8dec39 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Tue, 13 Oct 2009 00:38:42 -0700 Subject: artefact.cc: eliminate "array subscript is above array bounds" warnings Signed-off-by: Steven Noonan --- crawl-ref/source/artefact.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/artefact.cc') 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" }; -- cgit v1.2.3-54-g00ecf