aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-03-27 20:50:04 +0200
committerShauren <shauren.trinity@gmail.com>2018-03-27 20:50:04 +0200
commit1a8f143c55f7f18ceeb8f8afb2ca05ddc6ad6dcd (patch)
tree629aa99ea7d43a5d03e278c4142268a9f80a823c /src
parentad948edac0f4b2bf54cbef4eea6d5590918827b5 (diff)
Core/Misc: Build fix for some compilers
Closes #21705
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Phasing/PhaseShift.h12
1 files changed, 7 insertions, 5 deletions
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<uint32, VisibleMapIdRef> VisibleMapIdContainer;
typedef std::map<uint32, UiWorldMapAreaIdSwapRef> UiWorldMapAreaIdSwapContainer;
+ PhaseShift() : Flags(PhaseShiftFlags::Unphased), NonCosmeticReferences(0), CosmeticReferences(0), DefaultReferences(0), IsDbPhaseShift(false) { }
+
bool AddPhase(uint32 phaseId, PhaseFlags flags, std::vector<Condition*> const* areaConditions, int32 references = 1);
EraseResult<PhaseContainer> 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<PhaseShiftFlags> Flags = PhaseShiftFlags::Unphased;
+ EnumClassFlag<PhaseShiftFlags> 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__