Skip to content

Commit

Permalink
Fix [goal] not falling back to default name= if engine= omitted
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 23, 2016
1 parent c7d1bd6 commit 8478cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ai/composite/goal.cpp
Expand Up @@ -128,7 +128,7 @@ bool goal::active() const
void target_unit_goal::on_create()
{
goal::on_create();
if (cfg_["engine"] != "cpp") {
if (!cfg_["engine"].empty() && cfg_["engine"] != "cpp") {
unrecognized();
value_ = 0;
return;
Expand Down

0 comments on commit 8478cd6

Please sign in to comment.