VOXEL: fixed missing return value handling for qbt loader

master
Martin Gerhardy 2016-11-21 20:14:40 +01:00
parent c878706eef
commit 90d6ee1082
1 changed files with 6 additions and 2 deletions

View File

@ -40,9 +40,13 @@ bool QBTFormat::loadCompound(io::FileStream& stream) {
for (uint32_t i = 0; i < childCount; ++i) {
if (MergeCompounds) {
// if you don't need the datatree you can skip child nodes
skipNode(stream);
if (!skipNode(stream)) {
return false;
}
} else {
loadNode(stream);
if (!loadNode(stream)) {
return false;
}
}
}
return true;