From 18e52d9a037ebb751312d6a2632383135321763f Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 11 Dec 2015 08:09:30 +0100 Subject: Remove redundant assignments to "where" in browse_school_spell() --- src/cmd5.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cmd5.cc') diff --git a/src/cmd5.cc b/src/cmd5.cc index 05483b91..e12d62c5 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); } -- cgit v1.2.3