mail[Wesnoth-commits] r14040 - /branches/1.2/src/ai.cpp


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

Header


Content

Posted by rusty on October 21, 2006 - 14:34:
Author: rusty
Date: Sat Oct 21 14:33:35 2006
New Revision: 14040

URL: http://svn.gna.org/viewcvs/wesnoth?rev=14040&view=rev
Log:
Fix compile error: ai.cpp:1509: error: no match for operator* in ...
Missing bracket.  Bad Rusty.

Modified:
    branches/1.2/src/ai.cpp

Modified: branches/1.2/src/ai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.2/src/ai.cpp?rev=14040&r1=14039&r2=14040&view=diff
==============================================================================
--- branches/1.2/src/ai.cpp (original)
+++ branches/1.2/src/ai.cpp Sat Oct 21 14:33:35 2006
@@ -1506,7 +1506,7 @@
                        }
 
                        weighting += j->second.cost();
-                       score += 
compare_unit_types(info->second,j->second.type()*j->second.cost();
+                       score += 
compare_unit_types(info->second,j->second.type())*j->second.cost();
                }
 
                if(weighting != 0) {




Related Messages


Powered by MHonArc, Updated Sat Oct 21 20:01:25 2006