[wpdev-commits] wolfpack basedef.cpp,1.1,1.2 basedef.h,1.1,1.2
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-09-02 02:32:24
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv21678
Modified Files:
basedef.cpp basedef.h
Log Message:
Fixed unload behaviour.
Index: basedef.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/basedef.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** basedef.cpp 2 Sep 2003 02:07:23 -0000 1.1
--- basedef.cpp 2 Sep 2003 02:32:19 -0000 1.2
***************
*** 45,46 ****
--- 45,56 ----
memset( &chardefs, 0, 0x400 * sizeof( cCharBaseDef* ) );
}
+
+ cBaseDefManager::cBaseDefManager()
+ {
+ memset( &chardefs, 0, 0x400 * sizeof( cCharBaseDef* ) );
+ }
+
+ cBaseDefManager::~cBaseDefManager()
+ {
+ unload();
+ }
Index: basedef.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/basedef.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** basedef.h 2 Sep 2003 02:07:23 -0000 1.1
--- basedef.h 2 Sep 2003 02:32:19 -0000 1.2
***************
*** 39,44 ****
public:
! cBaseDefManager() {}
! virtual ~cBaseDefManager() {}
cCharBaseDef *getCharBaseDef( unsigned short id );
--- 39,44 ----
public:
! cBaseDefManager();
! virtual ~cBaseDefManager();
cCharBaseDef *getCharBaseDef( unsigned short id );
|