Skip to content

Commit ee17737

Browse files
Merge pull request #70 from darksylinc/warning-fix
Fix initialization order warning
2 parents aca35f1 + 552d7af commit ee17737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/D3D12MemAlloc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2795,7 +2795,7 @@ class AllocationObjectAllocator
27952795
D3D12MA_CLASS_NO_COPY(AllocationObjectAllocator);
27962796
public:
27972797
AllocationObjectAllocator(const ALLOCATION_CALLBACKS& allocationCallbacks, bool useMutex)
2798-
: m_Allocator(allocationCallbacks, 1024), m_UseMutex(useMutex) {}
2798+
: m_UseMutex(useMutex), m_Allocator(allocationCallbacks, 1024) {}
27992799

28002800
template<typename... Types>
28012801
Allocation* Allocate(Types... args);

0 commit comments

Comments
 (0)