From: Tom <rtp...@us...> - 2012-01-25 05:04:44
|
gemrb: Infinity Engine emulator The branch master has been updated via 4a059548974b780f8e0e9019f00813131e297c1d (commit) Summary of changes: gemrb/core/Interface.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) from 6e16daa1128547fa9e6ff9bc73a8b7019d1c1581 (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=4a059548974b780f8e0e9019f00813131e297c1d commit 4a059548974b780f8e0e9019f00813131e297c1d Author: Tom Prince <tom...@ua...> Date: Wed Jan 25 00:04:10 2012 -0500 Don't crash if we can't load stats.ids. diff --git a/gemrb/core/Interface.cpp b/gemrb/core/Interface.cpp index ea4cb4e..2df6dee 100644 --- a/gemrb/core/Interface.cpp +++ b/gemrb/core/Interface.cpp @@ -5494,6 +5494,9 @@ ieDword Interface::TranslateStat(const char *stat_name) int symbol = LoadSymbol( "stats" ); Holder<SymbolMgr> sym = GetSymbol( symbol ); + if (!sym) { + error("Core", "Cannot load statistic name mappings.\n"); + } ieDword stat = (ieDword) sym->GetValue( stat_name ); if (stat==(ieDword) ~0) { printMessage("Core", "Cannot translate symbol: %s\n", YELLOW, stat_name); ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- gemrb: Infinity Engine emulator |