mail[Wesnoth-commits] r28281 - /trunk/src/callable_objects.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by dragonking on July 31, 2008 - 23:40:
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") {




Related Messages


Powered by MHonArc, Updated Fri Aug 01 01:04:27 2008