00001
00002
00003
00004
00005 #include <OSCHOOL.H>
00006 #include <OSCHLRES.H>
00007 #include <OPEERSCH.H>
00008
00009
00013
00014 memset( this, 0, sizeof(PeerSchool));
00015
00016 if ( recno > 0 ) {
00017
00018 #if(GAME_VERSION>=200)
00019 School* sPtr = school_res.desired_school_array+recno-1;
00020 #else
00021 School *sPtr = (school_res.db_school_array+recno-1);
00022 #endif
00023
00024 memcpy( this, sPtr, sizeof(School) );
00025
00026 SchoolEx::init(recno);
00027 }
00028 }
00029
00030