diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-23 06:27:58 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-23 06:27:58 +0000 |
commit | 922cba628d3d6377574a90c7a817c10d84ed7f85 (patch) | |
tree | ae983cf4a6d1e2dc85fd5c58754f2ec06d25afae /crawl-ref/source/shopping.cc | |
parent | 7c2f45cfd1fed2a890780bdf2b7e3d1cd105dfb5 (diff) | |
download | crawl-ref-922cba628d3d6377574a90c7a817c10d84ed7f85.tar.gz crawl-ref-922cba628d3d6377574a90c7a817c10d84ed7f85.zip |
"stashes" was both a global variable and a member variable... confusing!
Renamed both of them.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3827 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r-- | crawl-ref/source/shopping.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index 1fab34bb59..4b92a783f0 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -140,7 +140,7 @@ static int shop_item_value(const item_def& item, int greed, bool id) static std::string shop_print_stock( const std::vector<int>& stock, const shop_struct& shop ) { - ShopInfo &si = stashes.get_shop(shop.x, shop.y); + ShopInfo &si = StashTrack.get_shop(shop.x, shop.y); const bool id = shoptype_identifies_stock(shop.type); std::string purchasable; for (unsigned int i = 0; i < stock.size(); ++i) @@ -185,7 +185,7 @@ static void in_a_shop( int shopidx ) while ( true ) { - stashes.get_shop(shop.x, shop.y).reset(); + StashTrack.get_shop(shop.x, shop.y).reset(); std::vector<int> stock = shop_stock(shopidx); |