diff --git a/apps/opencs/view/render/object.cpp b/apps/opencs/view/render/object.cpp index 6f0fb66068..8b3b5ca255 100644 --- a/apps/opencs/view/render/object.cpp +++ b/apps/opencs/view/render/object.cpp @@ -124,11 +124,15 @@ void CSVRender::Object::update() mActor->update(); mBaseNode->addChild(mActor->getBaseNode()); } - else + else if (!model.empty()) { std::string path = "meshes\\" + model; mResourceSystem->getSceneManager()->getInstance(path, mBaseNode); } + else + { + throw std::runtime_error(mReferenceableId + " has no model"); + } } catch (std::exception& e) {