diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-08-17 14:42:31 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-08-17 19:44:56 +0200 |
commit | bc66555d18224a8a46aea6ffea59676f3863dc8f (patch) | |
tree | 1f48f8c1b91643e266bd18577a73378837c1e083 /crawl-ref/source/mon-clone.cc | |
parent | a48703f346b1b9656d5b8e81732665831687ca12 (diff) | |
download | crawl-ref-bc66555d18224a8a46aea6ffea59676f3863dc8f.tar.gz crawl-ref-bc66555d18224a8a46aea6ffea59676f3863dc8f.zip |
Disambiguate get_item_slot().
There were two functions by that name:
* getting equipment slot of an item
* allocating a new entry in the mitm array
-- the latter is now get_mitm_slot().
Diffstat (limited to 'crawl-ref/source/mon-clone.cc')
-rw-r--r-- | crawl-ref/source/mon-clone.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-clone.cc b/crawl-ref/source/mon-clone.cc index a4c0dd194f..23a43a5c21 100644 --- a/crawl-ref/source/mon-clone.cc +++ b/crawl-ref/source/mon-clone.cc @@ -314,7 +314,7 @@ int clone_mons(const monster* orig, bool quiet, bool* obvious, if (old_index == NON_ITEM) continue; - const int new_index = get_item_slot(0); + const int new_index = get_mitm_slot(0); if (new_index == NON_ITEM) { mons->unequip(mitm[old_index], i, 0, true); |