feat: fix warning and configuration

This commit is contained in:
Yunfan Li
2023-05-24 19:43:56 +08:00
parent 72660b1ed8
commit ec45b40cb9
3 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View File

@@ -100,3 +100,5 @@ local.properties
# !modules/yourmodule # !modules/yourmodule
# #
# ================== # ==================
.cache
compile_commands.json

View File

@@ -118,5 +118,7 @@
}, },
"deno.enable": true, "deno.enable": true,
"deno.path": "deps/deno/bin/deno", "deno.path": "deps/deno/bin/deno",
"deno.lint": true "deno.lint": true,
"search.useIgnoreFiles": false,
"clangd.onConfigChanged": "restart"
} }

View File

@@ -92,12 +92,12 @@ private:
}; };
ThreatMgr* iThreatMgr; ThreatMgr* iThreatMgr;
public: public:
ThreatRefStatusChangeEvent(uint32 pType) : UnitBaseEvent(pType), iThreatMgr(nullptr), iFValue(0.f) ThreatRefStatusChangeEvent(uint32 pType) : UnitBaseEvent(pType), iFValue(0.f), iThreatMgr(nullptr)
{ {
iHostileReference = nullptr; iHostileReference = nullptr;
} }
ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference) : UnitBaseEvent(pType), iThreatMgr(nullptr), iFValue(0.f) ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference) : UnitBaseEvent(pType), iFValue(0.f), iThreatMgr(nullptr)
{ {
iHostileReference = pHostileReference; iHostileReference = pHostileReference;
} }