X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAccount.h;h=f5b91f1e869cbc2d43566b4d5e7f30c21d6ca54c;hb=1ca24d82b20cbd006045356b354fff56c63e4037;hp=b9d24832b1f8e0579490026804d74a5695ce11e9;hpb=5509b55dbc13227bdc7b97f2934fa71dad02cc66;p=lugaru.git diff --git a/Source/Account.h b/Source/Account.h index b9d2483..f5b91f1 100644 --- a/Source/Account.h +++ b/Source/Account.h @@ -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;