From: Laszlo T. <ave...@us...> - 2010-11-07 00:03:48
|
gemrb: Infinity Engine emulator The branch master has been updated via 5638bb7057daaf5f36c4b74065c13ea58a3e5439 (commit) Summary of changes: gemrb/core/Map.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) from 3479b1695e4c33c0693d372cd54467490cfa28e2 (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=5638bb7057daaf5f36c4b74065c13ea58a3e5439 commit 5638bb7057daaf5f36c4b74065c13ea58a3e5439 Author: Avenger <ave...@so...> Date: Sun Nov 7 01:03:02 2010 +0100 fixed crash caused by the recent searchmap refactoring diff --git a/gemrb/core/Map.cpp b/gemrb/core/Map.cpp index cb3baea..b99954c 100644 --- a/gemrb/core/Map.cpp +++ b/gemrb/core/Map.cpp @@ -1716,6 +1716,9 @@ void Map::PlayAreaSong(int SongType, bool restart, bool hard) unsigned int Map::GetBlocked(unsigned int x, unsigned int y) { + if (y>Height || x>Width) { + return 0; + } unsigned int ret = SrchMap[y*Width+x]; if (ret&(PATH_MAP_DOOR_TRANSPARENT|PATH_MAP_ACTOR)) { ret&=~PATH_MAP_PASSABLE; ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- gemrb: Infinity Engine emulator |