mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 07:55:36 +00:00
Fix [goal] not falling back to default name= if engine= omitted
This commit is contained in:
parent
c7d1bd6ae4
commit
8478cd604c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user