Author: fendrin
Date: Wed Feb  4 23:43:00 2009
New Revision: 32610

URL: http://svn.gna.org/viewcvs/wesnoth?rev=32610&view=rev
Log:
fixed bug #12912

Modified:
    trunk/data/campaigns/Under_the_Burning_Suns/utils/macros.cfg

Modified: trunk/data/campaigns/Under_the_Burning_Suns/utils/macros.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Under_the_Burning_Suns/utils/macros.cfg?rev=32610&r1=32609&r2=32610&view=diff
==============================================================================
--- trunk/data/campaigns/Under_the_Burning_Suns/utils/macros.cfg (original)
+++ trunk/data/campaigns/Under_the_Burning_Suns/utils/macros.cfg Wed Feb  4 
23:43:00 2009
@@ -22,7 +22,10 @@
         radius={RADIUS}
         variable=random_placement_locations
     [/store_locations]
-    {VARIABLE_OP random_string format "0..$random_placement_locations.length"}
+    [set_variable]
+        name=random_string
+        rand="0..$($random_placement_locations.length - 1)"
+    [/set_variable]   
 #enddef
 
 #define PLACE_UNITS_RANDOMLY NUMBER SIDE TYPE ID_STRING NAME_STRING TRAIT_WML


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to