diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-15 20:12:11 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-15 20:12:11 +0000 |
commit | d82ee4ebd849c7bfebb8d9998604e63767849efb (patch) | |
tree | 9c60b216c873b3a257b3eee09cd7fc41296aa26c /crawl-ref/source/clua.cc | |
parent | 778880771386e5f111aca28d397c5d32f3e7dca0 (diff) | |
download | crawl-ref-d82ee4ebd849c7bfebb8d9998604e63767849efb.tar.gz crawl-ref-d82ee4ebd849c7bfebb8d9998604e63767849efb.zip |
Minor cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1477 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index 86ff09945d..9a1b16aab2 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -1112,10 +1112,10 @@ static int l_item_subtype(lua_State *ls) const char *s = NULL; if (item->base_type == OBJ_JEWELLERY) { - if (item->sub_type < AMU_RAGE) - s = ring_types[item->sub_type]; - else + if (jewellery_is_amulet(*item)) s = amulet_types[ item->sub_type - AMU_RAGE ]; + else + s = ring_types[item->sub_type]; } if (s) |