Don't rely on assert when calling functions.

svn-id: r25426
This commit is contained in:
Johannes Schickel 2007-02-08 09:41:10 +00:00
parent 00d4aea7e6
commit 1cc18f6e7b

View File

@ -400,9 +400,12 @@ void KyraEngine_v3::realInit() {
musicUpdate(0);
musicUpdate(0);
assert(loadLanguageFile("ITEMS.", _itemList));
assert(loadLanguageFile("C_CODE.", _cCodeFile));
assert(loadLanguageFile("SCENES.", _scenesList));
if (!loadLanguageFile("ITEMS.", _itemList))
error("couldn't load ITEMS");
if (!loadLanguageFile("C_CODE.", _cCodeFile))
error("couldn't load C_CODE");
if (!loadLanguageFile("SCENES.", _scenesList))
error("couldn't load SCENES");
assert(_unkBuffer5 && _unkBuffer6 && _unkBuffer7 && _costpalData && _unkBuffer9 &&
_unkWSAPtr && _unkPage2 && _itemList && _cCodeFile && _scenesList);