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

View File

@@ -92,12 +92,12 @@ private:
};
ThreatMgr* iThreatMgr;
public:
ThreatRefStatusChangeEvent(uint32 pType) : UnitBaseEvent(pType), iThreatMgr(nullptr), iFValue(0.f)
ThreatRefStatusChangeEvent(uint32 pType) : UnitBaseEvent(pType), iFValue(0.f), iThreatMgr(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;
}