Havok: Add missing hkArray constructor

This commit is contained in:
Léo Lam 2022-01-20 15:02:14 +01:00
parent 26d2110e88
commit 820dc02de1
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ public:
using AllocatorType = Allocator; using AllocatorType = Allocator;
HK_FORCE_INLINE hkArray() = default; HK_FORCE_INLINE hkArray() = default;
HK_FORCE_INLINE hkArray(T* buffer, int size, int capacity)
: hkArrayBase<T>(buffer, size, capacity) {}
explicit hkArray(hkFinishLoadedObjectFlag f) : hkArrayBase<T>(f) {} explicit hkArray(hkFinishLoadedObjectFlag f) : hkArrayBase<T>(f) {}
HK_FORCE_INLINE ~hkArray() { clearAndDeallocate(); } HK_FORCE_INLINE ~hkArray() { clearAndDeallocate(); }