mail[Wesnoth-commits] r36508 - /trunk/src/ai/composite/engine_fai.cpp


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

Header


Content

Posted by loonycyborg on July 02, 2009 - 10:33:
Author: loonycyborg
Date: Thu Jul  2 10:33:05 2009
New Revision: 36508

URL: http://svn.gna.org/viewcvs/wesnoth?rev=36508&view=rev
Log:
Fixed a compiler warning.

Modified:
    trunk/src/ai/composite/engine_fai.cpp

Modified: trunk/src/ai/composite/engine_fai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/composite/engine_fai.cpp?rev=36508&r1=36507&r2=36508&view=diff
==============================================================================
--- trunk/src/ai/composite/engine_fai.cpp (original)
+++ trunk/src/ai/composite/engine_fai.cpp Thu Jul  2 10:33:05 2009
@@ -78,7 +78,7 @@
                ERR_AI_COMPOSITE_ENGINE_FAI << "side "<<ai_.get_side()<< " : 
ERROR creating candidate_action["<<cfg["name"]<<"]"<< std::endl;
                DBG_AI_COMPOSITE_ENGINE_FAI << "config snippet contains: " << 
std::endl << cfg << std::endl;
        }
-       candidate_action_ptr ca = 
candidate_action_ptr(&fai_candidate_action_wrapper(context,cfg,fai_ca,formula_ai_));
+       candidate_action_ptr ca = candidate_action_ptr(new 
fai_candidate_action_wrapper(context,cfg,fai_ca,formula_ai_));
        *b = ca;
 
 }




Related Messages


Powered by MHonArc, Updated Thu Jul 02 11:00:08 2009