Fix XCode Analyse false positive

This commit is contained in:
Corentin Wallez 2017-07-20 14:30:04 -04:00 committed by Corentin Wallez
parent a384c61f7a
commit 770f25f335
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ namespace backend {
currentBlock++; currentBlock++;
if (currentBlock >= blocks.size()) { if (currentBlock >= blocks.size()) {
Reset(); Reset();
*commandId = EndOfBlock;
return false; return false;
} }
currentPtr = AlignPtr(blocks[currentBlock].block, alignof(uint32_t)); currentPtr = AlignPtr(blocks[currentBlock].block, alignof(uint32_t));