From 47c565443b9a09344f58a0639d0de5693fbaec31 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 28 Jan 2012 12:42:48 +0000 Subject: FS#78 Print additional warnings if submodels could not be loaded. --- src/model/mapfile.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/model') 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; } -- cgit v1.2.3