summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/restext.cpp4
-rw-r--r--src/common/restext.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/common/restext.cpp b/src/common/restext.cpp
index 9af73e4..b610d7f 100644
--- a/src/common/restext.cpp
+++ b/src/common/restext.cpp
@@ -731,9 +731,9 @@ void InitializeRestext()
static char g_gamerName[100];
-void SetGlobalGamerName(char *name)
+void SetGlobalGamerName(std::string name)
{
- strcpy(g_gamerName, name);
+ strcpy(g_gamerName, name.c_str());
}
diff --git a/src/common/restext.h b/src/common/restext.h
index 8199f9f..1c99473 100644
--- a/src/common/restext.h
+++ b/src/common/restext.h
@@ -24,6 +24,8 @@
#include "common/global.h"
+#include <string>
+
/**
* \enum ResType
@@ -153,6 +155,6 @@ enum ResTextType
void InitializeRestext();
-void SetGlobalGamerName(char *name);
+void SetGlobalGamerName(std::string name);
bool SearchKey(const char *cmd, InputSlot& slot);
bool GetResource(ResType type, int num, char* text);