Author: dragonking
Date: Thu Jul 31 09:30:22 2008
New Revision: 28281
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28281&view=rev
Log:
Made ID of unit_callable be the same as unit_type_callable
Modified:
trunk/src/callable_objects.cpp
Modified: trunk/src/callable_objects.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/callable_objects.cpp?rev=28281&r1=28280&r2=28281&view=diff
==============================================================================
--- trunk/src/callable_objects.cpp (original)
+++ trunk/src/callable_objects.cpp Thu Jul 31 09:30:22 2008
@@ -159,9 +159,9 @@
} else if(key == "loc") {
return variant(new location_callable(loc_));
} else if(key == "id") {
+ return variant(u_.type_id());
+ } else if(key == "type") {
return variant(u_.id());
- } else if(key == "type") {
- return variant(u_.type_id());
} else if(key == "leader") {
return variant(u_.can_recruit());
} else if(key == "undead") {
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits