fixed MSVC compilation error

This commit is contained in:
Iurii Chernyi 2009-06-11 18:45:09 +00:00
parent a6818271ab
commit b192e801c8
2 changed files with 2 additions and 1 deletions

View file

@ -32,6 +32,7 @@ static lg::log_domain log_ai_composite_rca("ai/composite/rca");
#define LOG_AI_COMPOSITE_RCA LOG_STREAM(info, log_ai_composite_rca)
#define ERR_AI_COMPOSITE_RCA LOG_STREAM(err, log_ai_composite_rca)
const double candidate_action::BAD_SCORE = 0;
candidate_action::candidate_action(rca_context &context, const std::string &name, const std::string &type)
: recursion_counter_(context.get_recursion_count()), enabled_(true), score_(BAD_SCORE),name_(name),type_(type)

View file

@ -38,7 +38,7 @@ namespace composite_ai {
class candidate_action : public virtual rca_context_proxy {
public:
//this is a score guaranteed to be <=0, thus candidate action with this score will not be selected for execution
static const double BAD_SCORE = 0;
static const double BAD_SCORE;
/**
* Constructor