From eb61ec5578bf45d454d9d0c9fba523b7803a5ed9 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 15 Mar 2015 19:47:51 -0400 Subject: Fixed error with empty left and right maps --- src/map.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index a562bec..3b3d42c 100644 --- a/src/map.h +++ b/src/map.h @@ -9,17 +9,17 @@ class Entity; class Map { public: Map(); - Map(const std::string name); + Map(std::string name); Map(const Map& map); Map(Map&& map); ~Map(); Map& operator= (Map other); friend void swap(Map& first, Map& second); - static Map& getNamedMap(const std::string name); + static Map& getNamedMap(std::string name); const int* getMapdata() const; - const char* getTitle() const; + std::string getTitle() const; const Map* getLeftMap() const; const Map* getRightMap() const; void setLeftMap(const Map* m); @@ -34,7 +34,7 @@ class Map { }; int* mapdata; - char* title; + std::string title; std::string name; const Map* leftMap = nullptr; const Map* rightMap = nullptr; -- cgit 1.4.1