diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/model/mapfile.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/model/mapfile.cc b/src/model/mapfile.cc index c3567be..d24a684 100644 --- a/src/model/mapfile.cc +++ b/src/model/mapfile.cc @@ -1865,11 +1865,15 @@ Model * MapFile::load(std::string const &name) if (tag_submodel->name().size()) { submodel_model = Model::load(tag_submodel->name()); + } else { + con_warn << " invalid misc_model '" << tag_submodel->name() << "'" << std::endl; + continue; } if (submodel_model) { // skip empty submodels if (!submodel_model->groups().size()) { + con_warn << " ignoring empty misc_model '" << tag_submodel->name() << "'" << std::endl; continue; } |