small additional check

git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@101 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
albertzeyer
2009-07-22 18:46:57 +00:00
parent 60c6aa84da
commit 2e87c6c32a
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@@ -248,6 +248,12 @@ int CGame::loadResources(unsigned short Episode, char *DataDirectory)
// Load tile attributes.
if(TileLoader) delete TileLoader;
if(ExeFile->getData() == NULL) {
g_pLogFile->textOut(RED, "CGame::loadResources: Could not load data out of EXE<br>");
return 1;
}
TileLoader = new CTileLoader(Episode, ExeFile->getEXEVersion(), ExeFile->getData());
if(!TileLoader->load()) return 1;