mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2026-06-18 15:45:16 -04:00
Take ownership of created pointers on Element class.
This commit is contained in:
@@ -12,7 +12,7 @@ namespace recompui {
|
||||
set_cursor(Cursor::Pointer);
|
||||
set_border_width(2.0f);
|
||||
|
||||
floater = std::make_unique<Element>(this);
|
||||
floater = new Element(this);
|
||||
floater->set_position(Position::Relative);
|
||||
floater->set_top(2.0f);
|
||||
floater->set_width(80.0f);
|
||||
|
||||
Reference in New Issue
Block a user