]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Account.h
Fixed a bug loading all persons with the same ID. I hope it will fix weapon problems
[lugaru.git] / Source / Account.h
index 2d75f559143b1dc0849f20934d6ee5943aa35756..f5b91f1e869cbc2d43566b4d5e7f30c21d6ca54c 100644 (file)
@@ -1,6 +1,6 @@
 /*
 Copyright (C) 2003, 2010 - Wolfire Games
-Copyright (C) 2010 - Côme <MCMic> BERNIGAUD
+Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
 
 This file is part of Lugaru.
 
@@ -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;