diff options
author | Elmo Todurov <elmo.todurov@eesti.ee> | 2016-10-06 15:30:58 +0300 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-10-06 17:39:12 +0200 |
commit | d7b410ad837f6d5965c8309b2d55362812d37fa9 (patch) | |
tree | 8e77a80aec933e7f6a70b3345667c2597082a348 | |
parent | 9682d1dacbb60b81721cd943703fa485a50172ac (diff) |
Fix debug item creation menu
-rw-r--r-- | src/wizard2.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wizard2.cc b/src/wizard2.cc index 0c431066..e5b5d3d3 100644 --- a/src/wizard2.cc +++ b/src/wizard2.cc @@ -585,7 +585,7 @@ static int wiz_create_itemtype(void) std::vector<std::size_t> choice; choice.reserve(60); std::size_t i; - for (num = 0, i = 1; (choice.size() < 60) && (i < k_info.size()); i++) + for (i = 1; (choice.size() < 60) && (i < k_info.size()); i++) { auto k_ptr = &k_info[i]; @@ -599,7 +599,7 @@ static int wiz_create_itemtype(void) strip_name(buf, k_ptr); /* Print it */ - wci_string(buf, num); + wci_string(buf, choice.size()); /* Remember the object index */ choice.push_back(i); |