diff --git a/src/ai/composite/goal.cpp b/src/ai/composite/goal.cpp index 57f6c36d68f..bb4e01234d3 100644 --- a/src/ai/composite/goal.cpp +++ b/src/ai/composite/goal.cpp @@ -299,7 +299,9 @@ protect_goal::protect_goal(readonly_context &context, const config &cfg, bool pr } lua_goal::lua_goal(readonly_context &context, const config &cfg) -: goal(context, cfg) + : goal(context, cfg) + , code_() + , handler_() { if (cfg.has_attribute("code")) { code_ = cfg["code"].str();