summaryrefslogtreecommitdiffstats
path: root/source/cPlugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cPlugin.h')
-rw-r--r--source/cPlugin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cPlugin.h b/source/cPlugin.h
index c3f7c41b6..5c8befdec 100644
--- a/source/cPlugin.h
+++ b/source/cPlugin.h
@@ -70,8 +70,8 @@ public:
virtual bool OnWeatherChanged (cWorld * a_World);
// Accessors
- const char* GetName() const { return m_Name.c_str(); }
- void SetName( const char* a_Name ) { m_Name = a_Name; }
+ const AString & GetName() const { return m_Name; }
+ virtual void SetName( const AString & a_Name ) { m_Name = a_Name; }
int GetVersion() const { return m_Version; }
void SetVersion( int a_Version ) { m_Version = a_Version; }