]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Account.h
Replaced as much char* as possible by std::strings
[lugaru.git] / Source / Account.h
index b9d24832b1f8e0579490026804d74a5695ce11e9..f5b91f1e869cbc2d43566b4d5e7f30c21d6ca54c 100644 (file)
@@ -60,8 +60,8 @@ public:
     void setDifficulty(int i) {
         difficulty = i;
     };
-    const char* getName() {
-        return name.c_str();
+    const std::string& getName() {
+        return name;
     };
     float getCampaignScore() {
         return campaignProgress[currentCampaign].score;