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:
Binary file not shown.
@@ -248,6 +248,12 @@ int CGame::loadResources(unsigned short Episode, char *DataDirectory)
|
|||||||
|
|
||||||
// Load tile attributes.
|
// Load tile attributes.
|
||||||
if(TileLoader) delete TileLoader;
|
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());
|
TileLoader = new CTileLoader(Episode, ExeFile->getEXEVersion(), ExeFile->getData());
|
||||||
if(!TileLoader->load()) return 1;
|
if(!TileLoader->load()) return 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user