From 2f6262a7da259da4e7f09536580247f541cdd4a6 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Wed, 14 Oct 2009 14:26:32 +0200 Subject: Fix int cast warning. --- crawl-ref/source/shopping.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/shopping.cc') diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index c4959d66fd..fa0699db33 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -1678,7 +1678,7 @@ unsigned int item_value( item_def item, bool ident ) else rarity = book_rarity(item.sub_type); - valued += rarity * 50; + valued += (int)(rarity * 50.0); } break; -- cgit v1.2.3-54-g00ecf