Ignore:
Timestamp:
Jun 20, 2007, 3:38:44 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jenga/src/smoothie/Class.cpp

    r172 r173  
    669669    iIteNextNum( 0 )
    670670{
    671     memset( pobj_ClassHash, 0, MAX_CLASS_HASH * sizeof(CClass *) );
     671    Clear();
    672672}
    673673Classes::~Classes(){
     674    Clear();
     675}
     676void Classes::Clear()
     677{
    674678    int i;
    675679    for(i=0;i<MAX_CLASS_HASH;i++){
     
    678682
    679683    if(ppobj_IteClass) free(ppobj_IteClass);
     684    memset( pobj_ClassHash, 0, MAX_CLASS_HASH * sizeof(CClass *) );
    680685}
    681686
Note: See TracChangeset for help on using the changeset viewer.