From 5eba3aa5a1a0bb5ce0b5dd108f3d40a2379ffe0c Mon Sep 17 00:00:00 2001 From: haranp Date: Mon, 26 Jan 2009 07:44:29 +0000 Subject: Fix crash on seeing shop which I introduced in r8742. Fixes [2536472]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8775 c06c8d41-db1a-0410-9941-cceddc491573 --- 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 3a10ca6ea8..9345a5ba28 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -1832,7 +1832,7 @@ std::string shop_name(const coord_def& where) && shop_type != SHOP_GENERAL_ANTIQUE && shop_type != SHOP_DISTILLERY) { const char* suffixnames[] = {"Shoppe", "Boutique", "Emporium", "Shop"}; - const int temp = where.x + where.y % 4; + const int temp = (where.x + where.y) % 4; sh_name += ' '; sh_name += suffixnames[temp]; } -- cgit v1.2.3-54-g00ecf