Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/model/mapfile.cc4
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;
}