From 20a6151f4cee03e453a20aca91286a7fd57b4450 Mon Sep 17 00:00:00 2001 From: XiaoFeng Date: Tue, 9 Jun 2015 17:40:42 +0800 Subject: [PATCH] Fix indent --- cocos/editor-support/cocostudio/CocoLoader.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cocos/editor-support/cocostudio/CocoLoader.cpp b/cocos/editor-support/cocostudio/CocoLoader.cpp index 173fc52d5c..5cef34224c 100644 --- a/cocos/editor-support/cocostudio/CocoLoader.cpp +++ b/cocos/editor-support/cocostudio/CocoLoader.cpp @@ -177,19 +177,19 @@ bool CocoLoader::ReadCocoBinBuff(char* pBinBuff) pTempBuff += sizeof(stCocoFileHeader); char* pStartAddr = m_pMemoryBuff = pTempBuff; - char* pDestBuff = new char[m_pFileHeader->m_nDataSize]; - if (m_pFileHeader->m_nCompressSize > 0) + char* pDestBuff = new char[m_pFileHeader->m_nDataSize]; + if (m_pFileHeader->m_nCompressSize > 0) { uLongf dwSrcSize = m_pFileHeader->m_nCompressSize; uLongf dwDestSize = m_pFileHeader->m_nDataSize; uncompress((Bytef*)pDestBuff,&dwDestSize,(Bytef*)m_pMemoryBuff,dwSrcSize); } - else - { - memcpy(pDestBuff, m_pMemoryBuff, m_pFileHeader->m_nDataSize); - } - pStartAddr = m_pMemoryBuff = pDestBuff; - + else + { + memcpy(pDestBuff, m_pMemoryBuff, m_pFileHeader->m_nDataSize); + } + pStartAddr = m_pMemoryBuff = pDestBuff; + m_pObjectDescArray = (stExpCocoObjectDesc*)pStartAddr; char* pCocoMemAddr = pStartAddr + m_pFileHeader->m_CocoNodeMemAddr;