FileRead::getMatInfo, fixed if-else block

This commit is contained in:
Ariel Elkin
2014-01-05 20:19:27 +00:00
parent 4078d9309d
commit 80db57e79b

View File

@@ -622,7 +622,7 @@ bool FileRead :: getMatInfo( const char *fileName )
if ( fread(&rate, 1, 1, fd_) != 1 ) goto error;
srate = (StkFloat) rate;
}
if ( type == 2 ) { // UINT8
else if ( type == 2 ) { // UINT8
unsigned char rate;
if ( fread(&rate, 1, 1, fd_) != 1 ) goto error;
srate = (StkFloat) rate;