From 3658695c7764fa8e5d1c057ce8a3f6d208868bff Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 1 Dec 2012 11:02:39 +0000 Subject: Corrected a bug which prevented submodel cannon tags from loading. --- src/model/mapfile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/mapfile.cc b/src/model/mapfile.cc index 93d21ad..a516649 100644 --- a/src/model/mapfile.cc +++ b/src/model/mapfile.cc @@ -2033,7 +2033,7 @@ Model * MapFile::load(std::string const &name) } // copy weapon tags - for (Model::Weapons::const_iterator wit = submodel_model->weapons().begin(); wit != submodel_model->weapons().begin(); wit++) { + for (Model::Weapons::const_iterator wit = submodel_model->weapons().begin(); wit != submodel_model->weapons().end(); wit++) { tag_weapon = new Weapon(*(*wit)); tag_weapon->get_location().assign(tag_submodel->location() + tag_submodel->axis() * (tag_weapon->location() - submodel_model->origin()) * tag_submodel->scale()); tag_weapon->set_radius(tag_weapon->radius() * tag_submodel->scale()); -- cgit v1.2.3