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


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

Header


Content

Posted by esr on March 18, 2008 - 10:42:
Author: esr
Date: Tue Mar 18 10:42:36 2008
New Revision: 24775

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24775&view=rev
Log:
Fix for the formula evaluation code: "id" should eval to the unit's
ID, not its type.

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=24775&r1=24774&r2=24775&view=diff
==============================================================================
--- trunk/src/callable_objects.cpp (original)
+++ trunk/src/callable_objects.cpp Tue Mar 18 10:42:36 2008
@@ -78,6 +78,8 @@
        } else if(key == "loc") {
                return variant(new location_callable(loc_));
        } else if(key == "id") {
+               return variant(u_.id());
+       } else if(key == "type") {
                return variant(u_.type_id());
        } else if(key == "leader") {
                return variant(u_.can_recruit());




Related Messages


Powered by MHonArc, Updated Tue Mar 18 11:02:05 2008