diff --git a/code/ACLoader.cpp b/code/ACLoader.cpp index 5b7b6a61d..dac85b8db 100644 --- a/code/ACLoader.cpp +++ b/code/ACLoader.cpp @@ -349,8 +349,7 @@ void AC3DImporter::LoadObjectSection(std::vector& objects) { if(!GetNextLine()) { - DefaultLogger::get()->error("AC3D: Unexpected EOF: surface is incomplete"); - break; + throw DeadlyImportError("AC3D: Unexpected EOF: surface is incomplete"); } if (TokenMatch(buffer,"mat",3)) {