diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 11:57:49 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:54 +0100 |
commit | 45ec003a1de7857ac7dddb0732a9d005612b886f (patch) | |
tree | 9bb9005cd2fb296898af45fb1cef3b81f6e45470 /src/spells4.cc | |
parent | 2e65b441b27f1897fa5a5e468cae2dade7139f5f (diff) |
Remove spurious FIXMEs
Diffstat (limited to 'src/spells4.cc')
-rw-r--r-- | src/spells4.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spells4.cc b/src/spells4.cc index 22215f04..569583c5 100644 --- a/src/spells4.cc +++ b/src/spells4.cc @@ -109,7 +109,7 @@ school_book_type *school_books_at(int i) static void school_book_init(school_book_type *school_book) { - school_book->spell_idx_list = new spell_idx_list(); // FIXME: This whole thing should really be in the ctor?!? + school_book->spell_idx_list = new spell_idx_list(); } void school_book_add_spell(school_book_type *school_book, s32b spell_idx) @@ -150,7 +150,7 @@ bool_ school_book_contains_spell(int sval, s32b spell_idx) { random_book_setup(sval, spell_idx); school_book_type *school_book = school_books_at(sval); - return (school_book->spell_idx_list->v.end() != // FIXME: Oh, the horror! Is there really no shortcut?!? + return (school_book->spell_idx_list->v.end() != std::find(school_book->spell_idx_list->v.begin(), school_book->spell_idx_list->v.end(), spell_idx)); |