Skip to content

Commit e92402a

Browse files
committed
non-thrown exception
1 parent e6abb13 commit e92402a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

game/resources.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ std::unique_ptr<ProtoMesh> Resources::implLoadMeshMain(std::string name) {
412412
FileExt::assignExt(mesh,"MDH");
413413

414414
const phoenix::vdf_entry* entry = Resources::vdfsIndex().find_entry(mesh);
415-
if (entry == nullptr)
416-
std::runtime_error("failed to open resource: " + mesh);
415+
if(entry==nullptr)
416+
throw std::runtime_error("failed to open resource: " + mesh);
417417
auto reader = entry->open();
418418
auto mdh = phoenix::model_hierarchy::parse(reader);
419419

0 commit comments

Comments
 (0)