@ -2128,7 +2128,7 @@ int CSaveRestore::SaveReadNameAndComment( FileHandle_t f, OUT_Z_CAP(nameSize) ch
@@ -2128,7 +2128,7 @@ int CSaveRestore::SaveReadNameAndComment( FileHandle_t f, OUT_Z_CAP(nameSize) ch
int nNumberOfFields ;
char * pData ;
in t nFieldSize ;
shor t nFieldSize ;
pData = pSaveData ;
@ -2148,9 +2148,12 @@ int CSaveRestore::SaveReadNameAndComment( FileHandle_t f, OUT_Z_CAP(nameSize) ch
@@ -2148,9 +2148,12 @@ int CSaveRestore::SaveReadNameAndComment( FileHandle_t f, OUT_Z_CAP(nameSize) ch
pTokenList = NULL ;
// short, short (size, index of field name)
nFieldSize = * ( short * ) pData ;
Q_memcpy ( & nFieldSize , pData , sizeof ( short ) ) ;
pData + = sizeof ( short ) ;
pFieldName = pTokenList [ * ( short * ) pData ] ;
short index = 0 ;
Q_memcpy ( & index , pData , sizeof ( short ) ) ;
pFieldName = pTokenList [ index ] ;
if ( ! pFieldName | | Q_stricmp ( pFieldName , " GameHeader " ) )
{
@ -2161,7 +2164,7 @@ int CSaveRestore::SaveReadNameAndComment( FileHandle_t f, OUT_Z_CAP(nameSize) ch
@@ -2161,7 +2164,7 @@ int CSaveRestore::SaveReadNameAndComment( FileHandle_t f, OUT_Z_CAP(nameSize) ch
// int (fieldcount)
pData + = sizeof ( short ) ;
nNumberOfFields = * ( int * ) pData ;
Q_memcpy ( & nNumberOfFields , pData , sizeof ( int ) ) ;
pData + = nFieldSize ;
// Each field is a short (size), short (index of name), binary string of "size" bytes (data)
@ -2172,10 +2175,11 @@ int CSaveRestore::SaveReadNameAndComment( FileHandle_t f, OUT_Z_CAP(nameSize) ch
@@ -2172,10 +2175,11 @@ int CSaveRestore::SaveReadNameAndComment( FileHandle_t f, OUT_Z_CAP(nameSize) ch
// szName
// Actual Data
nFieldSize = * ( short * ) pData ;
Q_memcpy ( & nFieldSize , pData , sizeof ( short ) ) ;
pData + = sizeof ( short ) ;
pFieldName = pTokenList [ * ( short * ) pData ] ;
Q_memcpy ( & index , pData , sizeof ( short ) ) ;
pFieldName = pTokenList [ index ] ;
pData + = sizeof ( short ) ;
if ( ! Q_stricmp ( pFieldName , " comment " ) )