summaryrefslogtreecommitdiff
path: root/src/level.cpp
diff options
context:
space:
mode:
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);