mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
small fixes
This commit is contained in:
parent
1e12f80dd6
commit
ca40b93344
4 changed files with 7 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue