From: Alyssa M. <fu...@us...> - 2010-08-30 10:40:42
|
gemrb: Infinity Engine emulator The branch master has been updated via f99d5c50863c3144d545891389692f04077283c8 (commit) Summary of changes: gemrb/core/Spellbook.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) from caf8a6af6bf632477060f735a0df3ce53372c777 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://gemrb.git.sourceforge.net/git/gitweb.cgi?p=gemrb/gemrb;a=commitdiff;h=f99d5c50863c3144d545891389692f04077283c8 commit f99d5c50863c3144d545891389692f04077283c8 Author: Alyssa Milburn <fu...@fu...> Date: Mon Aug 30 12:40:06 2010 +0200 add a forgotten assert diff --git a/gemrb/core/Spellbook.cpp b/gemrb/core/Spellbook.cpp index 45d6c75..4b44a51 100644 --- a/gemrb/core/Spellbook.cpp +++ b/gemrb/core/Spellbook.cpp @@ -207,6 +207,7 @@ bool Spellbook::IsIWDSpellBook() const unsigned int Spellbook::GetSpellLevelCount(int type) const { + assert(type < NUM_BOOK_TYPES); return (unsigned int) spells[type].size(); } ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- gemrb: Infinity Engine emulator |