From 8a71071e3d9dd698f31846f2261e5b77ca7085c8 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sun, 21 Dec 2008 03:57:31 +0000 Subject: Change the spell_type enumerations so that SPELL_NO_SPELL is 0 and the first valid spell (Identify) is 1. This way any bug that causes a spell_type variable to be 0 will be recognized as an invalid spell. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7892 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spl-data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spl-data.h') diff --git a/crawl-ref/source/spl-data.h b/crawl-ref/source/spl-data.h index ac8f747a2f..6bf21a8484 100644 --- a/crawl-ref/source/spl-data.h +++ b/crawl-ref/source/spl-data.h @@ -2906,7 +2906,7 @@ { SPELL_NO_SPELL, "nonexistent spell", 0, - 0, + SPFLAG_TESTING, 0, 0, -1, -1, -- cgit v1.2.3-54-g00ecf