diff options
author | Stijn Buys <ingar@osirion.org> | 2012-01-28 12:42:48 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-01-28 12:42:48 +0000 |
commit | 47c565443b9a09344f58a0639d0de5693fbaec31 (patch) | |
tree | 390968c719327fc917d29085ef953e0292273b3b | |
parent | 1870fba873e6680a7d2d93926de4ff8539e3a676 (diff) |
FS#78 Print additional warnings if submodels could not be loaded.
-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; } |