Mercurial > hg > openttd
changeset 18091:3fae8f4b9820 draft
(svn r22912) -Fix [FS#4753]: another attempt at fixing a related crash (can't reproduce it though)
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 09 Sep 2011 17:46:21 +0000 |
parents | 791e9ba0a44a |
children | b00399731529 |
files | src/ai/ai_scanner.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ai/ai_scanner.cpp +++ b/src/ai/ai_scanner.cpp @@ -424,8 +424,8 @@ AIFileChecksumCreator checksum; const char *tar_filename = info->GetTarFile(); - TarList::iterator iter = _tar_list.find(tar_filename); - if (iter != _tar_list.end()) { + TarList::iterator iter; + if (tar_filename != NULL && (iter = _tar_list.find(tar_filename)) != _tar_list.end()) { /* The main script is in a tar file, so find all files that * are in the same tar and add them to the MD5 checksumming. */ TarFileList::iterator tar;