small fixes

This commit is contained in:
MihailRis
2024-01-15 14:32:18 +03:00
parent 1e12f80dd6
commit ca40b93344
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ ItemDef* ContentBuilder::createItem(std::string id) {
void ContentBuilder::checkIdentifier(std::string id) {
contenttype result;
if ((checkContentType(id) != contenttype::none)) {
if (((result = checkContentType(id)) != contenttype::none)) {
throw namereuse_error("name "+id+" is already used", result);
}
}