diff --git a/src/scene/assetmanager.cpp b/src/scene/assetmanager.cpp index 06a6c61cd8..5d81948e62 100644 --- a/src/scene/assetmanager.cpp +++ b/src/scene/assetmanager.cpp @@ -182,8 +182,13 @@ void AssetManager::update() { continue; } - _rootAssets.push_back(a); a->load(nullptr); + if (a->isFailed()) { + // The loading might fail because of any number of reasons, most likely of + // them some Lua syntax error + continue; + } + _rootAssets.push_back(a); a->startSynchronizations(); _toBeInitialized.push_back(a);