mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix stack_vector copy constructor
This commit is contained in:
parent
4313029bc7
commit
b85e357ab2
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ namespace util {
|
|||
stack_vector(const stack_vector<T, capacity>& other)
|
||||
: size_(other.size_) {
|
||||
for (int i = 0; i < size_; ++i) {
|
||||
new (&data_[i]) T(data_[i]);
|
||||
new (&data_[i]) T(other.data_[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue