summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-22 17:00:20 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-22 17:00:20 -0800
commit11e26b98d45a08e06fc1cbac394aae00c4e8a56e (patch)
tree6afabe55615a191dd8f5dfc21ae008d7668cfab0 /crawl-ref/source/tilepick.cc
parent7b22a3c233602f96171f5fc0555102c8608d4d8e (diff)
downloadcrawl-ref-11e26b98d45a08e06fc1cbac394aae00c4e8a56e.tar.gz
crawl-ref-11e26b98d45a08e06fc1cbac394aae00c4e8a56e.zip
Use TILEG_ERROR, not TILE_ERROR, for bad spells
tileidx_spell() returning TILE_ERROR for bad spells was causing assertions in rltiles/tiledef-gui.cc; it should have been returning TILEG_ERROR.
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index d8f8e85cb7..5b20795482 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -2970,7 +2970,7 @@ int tileidx_spell(spell_type spell)
case SPELL_WATER_ELEMENTALS:
case SPELL_PORKALATOR:
default:
- return TILE_ERROR;
+ return TILEG_ERROR;
}
}