summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
committerBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
commit18e52d9a037ebb751312d6a2632383135321763f (patch)
treee20a4799acacc258d2700521135f4e3193c45be3
parentc0656df23251be01694457468c63308be80b5c6d (diff)
Remove redundant assignments to "where" in browse_school_spell()
-rw-r--r--src/cmd5.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd5.cc b/src/cmd5.cc
index 05483b9..e12d62c 100644
--- a/src/cmd5.cc
+++ b/src/cmd5.cc
@@ -114,7 +114,7 @@ bool_ is_magestaff()
static void browse_school_spell(int book, int spell_idx, object_type *o_ptr)
{
int i;
- int num = 0, where = 1;
+ int num = 0;
int ask;
char choice;
char out_val[160];
@@ -133,13 +133,13 @@ static void browse_school_spell(int book, int spell_idx, object_type *o_ptr)
Term_save();
/* Display a list of spells */
- where = print_book(book, spell_idx, o_ptr);
+ print_book(book, spell_idx, o_ptr);
/* Get a spell from the user */
while (get_com(out_val, &choice))
{
/* Display a list of spells */
- where = print_book(book, spell_idx, o_ptr);
+ print_book(book, spell_idx, o_ptr);
/* Note verify */
ask = (isupper(choice));
@@ -161,7 +161,7 @@ static void browse_school_spell(int book, int spell_idx, object_type *o_ptr)
Term_load();
/* Display a list of spells */
- where = print_book(book, spell_idx, o_ptr);
+ auto where = print_book(book, spell_idx, o_ptr);
print_spell_desc(spell_x(book, spell_idx, i), where);
}