From 1a8f143c55f7f18ceeb8f8afb2ca05ddc6ad6dcd Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 27 Mar 2018 20:50:04 +0200 Subject: Core/Misc: Build fix for some compilers Closes #21705 --- src/server/game/Phasing/PhaseShift.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/server/game/Phasing/PhaseShift.h b/src/server/game/Phasing/PhaseShift.h index 8755868ae9d..f1929168613 100644 --- a/src/server/game/Phasing/PhaseShift.h +++ b/src/server/game/Phasing/PhaseShift.h @@ -82,6 +82,8 @@ public: typedef std::map VisibleMapIdContainer; typedef std::map UiWorldMapAreaIdSwapContainer; + PhaseShift() : Flags(PhaseShiftFlags::Unphased), NonCosmeticReferences(0), CosmeticReferences(0), DefaultReferences(0), IsDbPhaseShift(false) { } + bool AddPhase(uint32 phaseId, PhaseFlags flags, std::vector const* areaConditions, int32 references = 1); EraseResult RemovePhase(uint32 phaseId); bool HasPhase(uint32 phaseId) const { return Phases.find(PhaseRef(phaseId, PhaseFlags::None, nullptr)) != Phases.end(); } @@ -105,7 +107,7 @@ public: protected: friend class PhasingHandler; - EnumClassFlag Flags = PhaseShiftFlags::Unphased; + EnumClassFlag Flags; ObjectGuid PersonalGuid; PhaseContainer Phases; VisibleMapIdContainer VisibleMapIds; @@ -113,10 +115,10 @@ protected: void ModifyPhasesReferences(PhaseContainer::iterator itr, int32 references); void UpdateUnphasedFlag(); - int32 NonCosmeticReferences = 0; - int32 CosmeticReferences = 0; - int32 DefaultReferences = 0; - bool IsDbPhaseShift = false; + int32 NonCosmeticReferences; + int32 CosmeticReferences; + int32 DefaultReferences; + bool IsDbPhaseShift; }; #endif // PhaseShift_h__ -- cgit v1.2.3