diff options
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.h b/src/map.h index 4019428..956e370 100644 --- a/src/map.h +++ b/src/map.h | |||
@@ -79,7 +79,7 @@ public: | |||
79 | 79 | ||
80 | const std::vector<Prototype>& getPrototypes() const { return prototypes_; } | 80 | const std::vector<Prototype>& getPrototypes() const { return prototypes_; } |
81 | 81 | ||
82 | const vec2i& getWarpPoint(const std::string& name) const { return warpPoints_.at(name); } | 82 | const vec2i& getWarpPoint(std::string_view name) const { return warpPoints_.find(name)->second; } |
83 | 83 | ||
84 | const std::vector<Trigger>& getTriggers() const { return triggers_; } | 84 | const std::vector<Trigger>& getTriggers() const { return triggers_; } |
85 | 85 | ||
@@ -103,7 +103,7 @@ private: | |||
103 | std::string tilesetFilename_; | 103 | std::string tilesetFilename_; |
104 | int tilesetColumns_; | 104 | int tilesetColumns_; |
105 | std::vector<Prototype> prototypes_; | 105 | std::vector<Prototype> prototypes_; |
106 | std::map<std::string, vec2i> warpPoints_; | 106 | std::map<std::string, vec2i, std::less<>> warpPoints_; |
107 | std::vector<Trigger> triggers_; | 107 | std::vector<Trigger> triggers_; |
108 | std::map<std::string, Zone> zones_; | 108 | std::map<std::string, Zone> zones_; |
109 | std::string music_; | 109 | std::string music_; |