From d7b410ad837f6d5965c8309b2d55362812d37fa9 Mon Sep 17 00:00:00 2001 From: Elmo Todurov Date: Thu, 6 Oct 2016 15:30:58 +0300 Subject: Fix debug item creation menu --- src/wizard2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 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); -- cgit v1.2.3