summaryrefslogtreecommitdiff
path: root/src/level.cpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-02-02 02:54:34 +0500
committerilotterytea <iltsu@alright.party>2025-02-02 02:54:34 +0500
commite7536175164e8ba816041971d9f2ab88082b0a6f (patch)
tree3a4baa1fdb2c6b6a593e15f79926c354acac5211 /src/level.cpp
parent0ae2d10bdfd3d4fe7483829fb9c9257973e644c7 (diff)
feat: windows for creating a new level and floor
Diffstat (limited to 'src/level.cpp')
-rw-r--r--src/level.cpp2
1 files changed, 1 insertions, 1 deletions
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);