craftdef.cpp: Return 0 after assert to make Clang happy

This commit is contained in:
Loic Blot 2015-04-05 11:16:12 +02:00
parent 4235f671c1
commit ed3ebd633d
1 changed files with 4 additions and 0 deletions

View File

@ -531,6 +531,7 @@ u64 CraftDefinitionShaped::getHash(CraftHashType type) const
} else {
//illegal hash type for this CraftDefinition (pre-condition)
assert(false);
return 0;
}
}
@ -676,6 +677,7 @@ u64 CraftDefinitionShapeless::getHash(CraftHashType type) const
} else {
//illegal hash type for this CraftDefinition (pre-condition)
assert(false);
return 0;
}
}
@ -902,6 +904,7 @@ u64 CraftDefinitionCooking::getHash(CraftHashType type) const
} else {
//illegal hash type for this CraftDefinition (pre-condition)
assert(false);
return 0;
}
}
@ -1011,6 +1014,7 @@ u64 CraftDefinitionFuel::getHash(CraftHashType type) const
} else {
//illegal hash type for this CraftDefinition (pre-condition)
assert(false);
return 0;
}
}