Adding default case
This commit is contained in:
parent
77e5a18784
commit
877e7ad2fa
@ -119,6 +119,8 @@ namespace character {
|
|||||||
case toolsHash:
|
case toolsHash:
|
||||||
billy.emplace(static_cast<tools>(value), std::make_unique<Tools>(static_cast<tools>(value)));
|
billy.emplace(static_cast<tools>(value), std::make_unique<Tools>(static_cast<tools>(value)));
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
throw std::logic_error("Wrong hash for from_json in BillyObjects::from_json");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user