mirror of https://github.com/axmolengine/axmol.git
fix CCBReader magic bytes compare bug which cause CocosBuilderTest turns black
This commit is contained in:
parent
b9e5cadeba
commit
0c309acbe7
|
@ -387,7 +387,7 @@ bool CCBReader::readHeader()
|
|||
int magicBytes = *((int*)(this->_bytes + this->_currentByte));
|
||||
this->_currentByte += 4;
|
||||
|
||||
if(CC_SWAP_INT32_LITTLE_TO_HOST(magicBytes) != (*reinterpret_cast<const int*>("ccbi"))) {
|
||||
if(CC_SWAP_INT32_BIG_TO_HOST(magicBytes) != (*reinterpret_cast<const int*>("ccbi"))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue