mirror of
https://github.com/minetest/minetest.git
synced 2024-07-04 15:05:27 +02:00
let there be fix
This commit is contained in:
parent
bcbe072b66
commit
08751de016
@ -254,9 +254,9 @@ class KdTree {
|
|||||||
std::copy(a.ids.get(), a.ids.get() + a.cap(), ids.get());
|
std::copy(a.ids.get(), a.ids.get() + a.cap(), ids.get());
|
||||||
std::copy(b.ids.get(), b.ids.get() + b.cap(), ids.get() + a.cap());
|
std::copy(b.ids.get(), b.ids.get() + b.cap(), ids.get() + a.cap());
|
||||||
deleted = std::vector<bool>(cap());
|
deleted = std::vector<bool>(cap());
|
||||||
|
init(0, 0, items.indices); // this does le dirty dirty hack so call it BEFORE we deal with deleted
|
||||||
std::copy(a.deleted.begin(), a.deleted.end(), deleted.begin());
|
std::copy(a.deleted.begin(), a.deleted.end(), deleted.begin());
|
||||||
std::copy(b.deleted.begin(), b.deleted.end(), deleted.begin() + a.items.size());
|
std::copy(b.deleted.begin(), b.deleted.end(), deleted.begin() + a.items.size());
|
||||||
init(0, 0, items.indices);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename F>
|
template<typename F>
|
||||||
|
Loading…
Reference in New Issue
Block a user