From e7536175164e8ba816041971d9f2ab88082b0a6f Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 2 Feb 2025 02:54:34 +0500 Subject: feat: windows for creating a new level and floor --- src/level.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/level.cpp') diff --git a/src/level.cpp b/src/level.cpp index bee3297..8e9ba81 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -72,7 +72,7 @@ namespace silly::editor { const int TileFloor::get_width() const { return this->width; } const int TileFloor::get_height() const { return this->height; } - void TileLevel::add_floor(TileFloor &floor) { this->floors.push_back(floor); } + void TileLevel::add_floor(TileFloor floor) { this->floors.push_back(floor); } void TileLevel::move_to_floor(int floor_id) { this->current_floor = std::min(floor_id, (int)this->floors.size() - 1); -- cgit v1.2.3