about summary refs log tree commit diff
path: root/src/game/client/component.hpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-30 09:16:29 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-30 09:16:29 +0000
commit9672fe674f6335318cf11855299679f9d94a619b (patch)
tree09470e4c0ad819ce02f96f277eadbe93aedf4e97 /src/game/client/component.hpp
parent2e2d31ccc359228f0031b9fa507b33f8ba935722 (diff)
downloadzcatch-9672fe674f6335318cf11855299679f9d94a619b.tar.gz
zcatch-9672fe674f6335318cf11855299679f9d94a619b.zip
fixed so you can disconnect and reconnet without crashing
Diffstat (limited to 'src/game/client/component.hpp')
-rw-r--r--src/game/client/component.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/client/component.hpp b/src/game/client/component.hpp
index 7955f845..8ba4a52b 100644
--- a/src/game/client/component.hpp
+++ b/src/game/client/component.hpp
@@ -7,9 +7,10 @@ class GAMECLIENT;
 
 class COMPONENT
 {
+protected:
+	GAMECLIENT *client;
 public:
 	~COMPONENT() {}
-	GAMECLIENT *client;
 	
 	virtual void on_statechange(int new_state, int old_state) {};
 	virtual void on_init() {};