Author: ai0867
Date: Fri Sep 19 14:36:29 2008
New Revision: 29546
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29546&view=rev
Log:
* Clean up find_config a bit.
Modified:
trunk/src/unit_types.cpp
Modified: trunk/src/unit_types.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_types.cpp?rev=29546&r1=29545&r2=29546&view=diff
==============================================================================
--- trunk/src/unit_types.cpp (original)
+++ trunk/src/unit_types.cpp Fri Sep 19 14:36:29 2008
@@ -28,6 +28,7 @@
#include "serialization/string_utils.hpp"
#include "color_range.hpp"
#include "game_display.hpp"
+#include "wml_exception.hpp"
#include <algorithm>
#include <cassert>
@@ -1228,11 +1229,10 @@
if (cfg != NULL)
return *cfg;
- DBG_UT << "unit type not found: " << key << "\n";
- DBG_UT << *unit_cfg_ << "\n";
-
- assert(cfg != NULL);
- return *cfg;
+ ERR_CONFIG << "unit type not found: " << key << "\n";
+ ERR_CONFIG << *unit_cfg_ << "\n";
+
+ assert(false && "unit type not found");
}
void unit_type_data::unit_type_map_wrapper::build_all(unit_type::BUILD_STATUS
status) const
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits