From 7c84349990f21f783f4b24c113fb372a3c00164b Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 22 Aug 2012 14:22:21 +0000 Subject: WebAdmin should not cause crashes anymore Got rid of cWebPlugin_Lua cPlugin_Lua is also a cWebPlugin now, so plugins don't need a separate cWebPlugin object Changed some stuff to use AString instead of char* git-svn-id: http://mc-server.googlecode.com/svn/trunk@777 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlugin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cPlugin.h') 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; } -- cgit v1.2.3