Update irrArray.h

fix init ordering.
pull/2885/head
Kim Kulling 2020-02-16 18:10:52 +01:00 committed by GitHub
parent d75f46280d
commit 92da00329f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class array
public: public:
array() array()
: data(0), used(0), allocated(0), : data(0), allocated(0), used(0),
free_when_destroyed(true), is_sorted(true) free_when_destroyed(true), is_sorted(true)
{ {
} }
@ -31,7 +31,7 @@ public:
//! Constructs a array and allocates an initial chunk of memory. //! Constructs a array and allocates an initial chunk of memory.
//! \param start_count: Amount of elements to allocate. //! \param start_count: Amount of elements to allocate.
array(u32 start_count) array(u32 start_count)
: data(0), used(0), allocated(0), : data(0), allocated(0), used(0),
free_when_destroyed(true), is_sorted(true) free_when_destroyed(true), is_sorted(true)
{ {
reallocate(start_count); reallocate(start_count);