From 11e26b98d45a08e06fc1cbac394aae00c4e8a56e Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Sun, 22 Nov 2009 17:00:20 -0800 Subject: 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. --- crawl-ref/source/tilepick.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/tilepick.cc') 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; } } -- cgit v1.2.3-54-g00ecf