Fix [goal] not falling back to default name= if engine= omitted

This commit is contained in:
Celtic Minstrel 2016-03-22 20:23:23 -04:00
parent c7d1bd6ae4
commit 8478cd604c

View file

@ -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;