diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-14 13:53:27 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-14 13:53:27 +0000 |
commit | d0de96b23ce1d6e838c43a8dcaa5b5705e3cc027 (patch) | |
tree | 9e1e716677b819817766986f7a125708942666fe /crawl-ref/source/stash.cc | |
parent | fc767d9b3b123f6bdf37e30b78200c06f042b570 (diff) | |
download | crawl-ref-d0de96b23ce1d6e838c43a8dcaa5b5705e3cc027.tar.gz crawl-ref-d0de96b23ce1d6e838c43a8dcaa5b5705e3cc027.zip |
Minor type-safety.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1862 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r-- | crawl-ref/source/stash.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc index 0889f3006b..7cd5e28a81 100644 --- a/crawl-ref/source/stash.cc +++ b/crawl-ref/source/stash.cc @@ -698,7 +698,7 @@ std::string ShopInfo::shop_item_name(const shop_item &si) const const unsigned long oldflags = si.item.flags; - if ( shoptype_identifies_stock(this->shoptype) ) + if (shoptype_identifies_stock(static_cast<shop_type>(this->shoptype))) const_cast<shop_item&>(si).item.flags |= ISFLAG_IDENT_MASK; const std::string itemname = Stash::stash_item_name(si.item); @@ -717,7 +717,7 @@ std::string ShopInfo::shop_item_desc(const shop_item &si) const const unsigned long oldflags = si.item.flags; - if (shoptype_identifies_stock(this->shoptype)) + if (shoptype_identifies_stock(static_cast<shop_type>(this->shoptype))) const_cast<shop_item&>(si).item.flags |= ISFLAG_IDENT_MASK; if (is_dumpable_artefact(si.item, false)) @@ -741,7 +741,7 @@ void ShopInfo::describe_shop_item(const shop_item &si) const { const unsigned long oldflags = si.item.flags; - if (shoptype_identifies_stock(this->shoptype)) + if (shoptype_identifies_stock(static_cast<shop_type>(this->shoptype))) const_cast<shop_item&>(si).item.flags |= ISFLAG_IDENT_MASK; describe_item( si.item ); |