summaryrefslogtreecommitdiff
path: root/src/level.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/level.hpp')
-rw-r--r--src/level.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/level.hpp b/src/level.hpp
index 2364413..c5eb1ea 100644
--- a/src/level.hpp
+++ b/src/level.hpp
@@ -41,7 +41,7 @@ namespace silly::editor {
private:
int width, height;
- int activeLayerIndex;
+ int activeLayerIndex = 0;
std::vector<TileLayer> layers;
};
@@ -50,7 +50,7 @@ namespace silly::editor {
TileLevel(const std::string &name) : name(name) {}
~TileLevel() = default;
- void add_floor(TileFloor &floor);
+ void add_floor(TileFloor floor);
void move_to_floor(int floor_id);
TileFloor &get_current_floor();
@@ -61,7 +61,7 @@ namespace silly::editor {
private:
const std::string name;
- int current_floor;
+ int current_floor = 0;
std::vector<TileFloor> floors;
};
} \ No newline at end of file