mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
craftdef.cpp: Return 0 after assert to make Clang happy
This commit is contained in:
@@ -531,6 +531,7 @@ u64 CraftDefinitionShaped::getHash(CraftHashType type) const
|
|||||||
} else {
|
} else {
|
||||||
//illegal hash type for this CraftDefinition (pre-condition)
|
//illegal hash type for this CraftDefinition (pre-condition)
|
||||||
assert(false);
|
assert(false);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -676,6 +677,7 @@ u64 CraftDefinitionShapeless::getHash(CraftHashType type) const
|
|||||||
} else {
|
} else {
|
||||||
//illegal hash type for this CraftDefinition (pre-condition)
|
//illegal hash type for this CraftDefinition (pre-condition)
|
||||||
assert(false);
|
assert(false);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -902,6 +904,7 @@ u64 CraftDefinitionCooking::getHash(CraftHashType type) const
|
|||||||
} else {
|
} else {
|
||||||
//illegal hash type for this CraftDefinition (pre-condition)
|
//illegal hash type for this CraftDefinition (pre-condition)
|
||||||
assert(false);
|
assert(false);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1011,6 +1014,7 @@ u64 CraftDefinitionFuel::getHash(CraftHashType type) const
|
|||||||
} else {
|
} else {
|
||||||
//illegal hash type for this CraftDefinition (pre-condition)
|
//illegal hash type for this CraftDefinition (pre-condition)
|
||||||
assert(false);
|
assert(false);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user