mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
leaks fix (valgrind full leak check) in world
This commit is contained in:
parent
f8289a5d78
commit
3b4fc2dfea
10 changed files with 215 additions and 222 deletions
|
|
@ -98,6 +98,7 @@ std::shared_ptr<UINode> create_debug_panel(
|
|||
|
||||
// Coord input
|
||||
auto box = std::make_shared<TextBox>(L"");
|
||||
auto boxRef = box.get();
|
||||
box->setTextSupplier([=]() {
|
||||
Hitbox* hitbox = player->hitbox.get();
|
||||
return util::to_wstring(hitbox->position[ax], 2);
|
||||
|
|
@ -113,7 +114,7 @@ std::shared_ptr<UINode> create_debug_panel(
|
|||
});
|
||||
box->setOnEditStart([=](){
|
||||
Hitbox* hitbox = player->hitbox.get();
|
||||
box->setText(std::to_wstring(int(hitbox->position[ax])));
|
||||
boxRef->setText(std::to_wstring(int(hitbox->position[ax])));
|
||||
});
|
||||
box->setSize(glm::vec2(230, 27));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue