mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
craftdef.cpp: Return 0 after assert to make Clang happy
This commit is contained in:
parent
4235f671c1
commit
ed3ebd633d
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue